[SUPPORT] shard: Use mode from config on reload #1183

Closed
acid-ant wants to merge 1 commit from acid-ant/frostfs-node:bugfix/1173-use-mode-from-cfg-on-reload-support into support/v0.38

View file

@ -360,7 +360,7 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
}
s.log.Info(logs.ShardTryingToRestoreReadwriteMode)
Review

The log message does no longer correspond to the action.

The log message does no longer correspond to the action.
return s.setMode(mode.ReadWrite)
return s.setMode(c.info.Mode)
Review

This is a change of behaviour, should not be in the support branch.

This is a change of behaviour, should not be in the support branch.
}
func (s *Shard) lockExclusive() func() {