forked from TrueCloudLab/frostfs-node
[#1559] local_object_storage: Move shard to the DegradedReadOnly
mode
`Degraded` mode can be set by the administrator if needed. Modifying operations in this mode can lead node into an inconsistent state because metabase checks such as lock checking are not performed. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
3df62769c0
commit
4944490ffb
18 changed files with 58 additions and 32 deletions
|
@ -43,6 +43,8 @@ func (s *Server) ListShards(_ context.Context, req *control.ListShardsRequest) (
|
|||
m = control.ShardMode_READ_ONLY
|
||||
case mode.Degraded:
|
||||
m = control.ShardMode_DEGRADED
|
||||
case mode.DegradedReadOnly:
|
||||
m = control.ShardMode_DEGRADED_READ_ONLY
|
||||
default:
|
||||
m = control.ShardMode_SHARD_MODE_UNDEFINED
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue