[#1806] shard: Check each component mode when setting mode

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-09-21 14:21:11 +03:00 committed by fyrchik
parent 1c62f1b2c4
commit f2045c10d7

View file

@ -21,10 +21,6 @@ func (s *Shard) SetMode(m mode.Mode) error {
s.m.Lock()
defer s.m.Unlock()
if s.info.Mode == m {
return nil
}
components := []interface{ SetMode(mode.Mode) error }{
s.metaBase, s.blobStor,
}