forked from TrueCloudLab/frostfs-node
[#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
555a4bad04
2 changed files with 3 additions and 3 deletions
|
@ -270,7 +270,7 @@ const (
|
|||
ShardCouldNotCloseShardComponent = "could not close shard component"
|
||||
ShardCantOpenMetabaseMoveToADegradedMode = "can't open metabase, move to a degraded mode"
|
||||
ShardCantInitializeMetabaseMoveToADegradedreadonlyMode = "can't initialize metabase, move to a degraded-read-only mode"
|
||||
ShardTryingToRestoreReadwriteMode = "trying to restore read-write mode"
|
||||
ShardTryingToSetModeFromConfig = "trying to set mode from config"
|
||||
ShardStopEventListenerByClosedEventChannel = "stop event listener by closed `event` channel"
|
||||
ShardStopEventListenerByClosedStopChannel = "stop event listener by closed `stop` channel"
|
||||
ShardStopEventListenerByContext = "stop event listener by context"
|
||||
|
|
|
@ -359,8 +359,8 @@ func (s *Shard) Reload(ctx context.Context, opts ...Option) error {
|
|||
}
|
||||
}
|
||||
|
||||
s.log.Info(logs.ShardTryingToRestoreReadwriteMode)
|
||||
return s.setMode(mode.ReadWrite)
|
||||
s.log.Info(logs.ShardTryingToSetModeFromConfig)
|
||||
return s.setMode(c.info.Mode)
|
||||
}
|
||||
|
||||
func (s *Shard) lockExclusive() func() {
|
||||
|
|
Loading…
Reference in a new issue