forked from TrueCloudLab/frostfs-node
[#1806] shard: Check each component mode when setting mode
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
1c62f1b2c4
commit
f2045c10d7
1 changed files with 0 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue