From 4b89f66d11ce43de750d7f3875922bc91d607624 Mon Sep 17 00:00:00 2001 From: lanmengran1 Date: Sat, 18 Sep 2021 16:03:34 +0800 Subject: [PATCH] remove redundant 'LEAVING' status in Operation construction Signed-off-by: lanmengran1 --- pkg/ring/ring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ring/ring.go b/pkg/ring/ring.go index 01ef9d24fe2..6c135aeba42 100644 --- a/pkg/ring/ring.go +++ b/pkg/ring/ring.go @@ -866,7 +866,7 @@ func NewOp(healthyStates []InstanceState, shouldExtendReplicaSet func(s Instance } if shouldExtendReplicaSet != nil { - for _, s := range []InstanceState{ACTIVE, LEAVING, PENDING, JOINING, LEAVING, LEFT} { + for _, s := range []InstanceState{ACTIVE, LEAVING, PENDING, JOINING, LEFT} { if shouldExtendReplicaSet(s) { op |= (0x10000 << s) }