From 49eab6318c62c3377f6202f33a0654888cda817e Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 10 Oct 2022 11:59:15 +0300 Subject: [PATCH] [#1867] control: Fix degraded-read-only mode parsing Signed-off-by: Evgenii Stratonikov --- pkg/services/control/server/set_shard_mode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/control/server/set_shard_mode.go b/pkg/services/control/server/set_shard_mode.go index ed7b26f64..555be1bd6 100644 --- a/pkg/services/control/server/set_shard_mode.go +++ b/pkg/services/control/server/set_shard_mode.go @@ -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)) }