[#1173] shard: Use mode
from config on reload
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
6067e644d6
commit
cf581a2384
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
|
|||
}
|
||||
|
||||
s.log.Info(logs.ShardTryingToRestoreReadwriteMode)
|
||||
return s.setMode(mode.ReadWrite)
|
||||
return s.setMode(c.info.Mode)
|
||||
}
|
||||
|
||||
func (s *Shard) lockExclusive() func() {
|
||||
|
|
Loading…
Add table
Reference in a new issue