forked from TrueCloudLab/frostfs-node
[#453] engine: Set Disabled mode to deleted shard
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
50caa388b0
commit
01a0c97760
9 changed files with 42 additions and 5 deletions
|
@ -56,9 +56,11 @@ func (s *Shard) setMode(m mode.Mode) error {
|
|||
}
|
||||
}
|
||||
|
||||
for i := range components {
|
||||
if err := components[i].SetMode(m); err != nil {
|
||||
return err
|
||||
if !m.Disabled() {
|
||||
for i := range components {
|
||||
if err := components[i].SetMode(m); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue