forked from TrueCloudLab/frostfs-node
[#1867] control: Fix degraded-read-only mode parsing
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>support/v0.34
parent
c0199dee93
commit
49eab6318c
|
@ -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 New Issue