[#1867] control: Fix degraded-read-only mode parsing

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
support/v0.34
Evgenii Stratonikov 2022-10-10 11:59:15 +03:00 committed by fyrchik
parent c0199dee93
commit 49eab6318c
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}