forked from TrueCloudLab/frostfs-node
[#1867] control: Fix degraded-read-only mode parsing
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
c0199dee93
commit
49eab6318c
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ func (s *Server) SetShardMode(_ context.Context, req *control.SetShardModeReques
|
|||
case control.ShardMode_DEGRADED:
|
||||
m = mode.Degraded
|
||||
case control.ShardMode_DEGRADED_READ_ONLY:
|
||||
m = mode.ReadOnly
|
||||
m = mode.DegradedReadOnly
|
||||
default:
|
||||
return nil, status.Error(codes.Internal, fmt.Sprintf("unknown shard mode: %s", requestedMode))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue