forked from TrueCloudLab/frostfs-node
[#1636] shard: Change ops limiter on shard reload
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
401d96a89e
commit
6c6e463b73
1 changed files with 4 additions and 0 deletions
|
@ -449,6 +449,10 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
if c.opsLimiter != nil {
|
||||
s.opsLimiter.Close()
|
||||
s.opsLimiter = c.opsLimiter
|
||||
}
|
||||
return s.setMode(ctx, c.info.Mode)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue