Skip to content

Commit 1d29897

Browse files
authored
Ring: remove redundant 'LEAVING' status in Operation construction (#4485)
Signed-off-by: lanmengran1 <[email protected]>
1 parent 9e8b48b commit 1d29897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ring/ring.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ func NewOp(healthyStates []InstanceState, shouldExtendReplicaSet func(s Instance
866866
}
867867

868868
if shouldExtendReplicaSet != nil {
869-
for _, s := range []InstanceState{ACTIVE, LEAVING, PENDING, JOINING, LEAVING, LEFT} {
869+
for _, s := range []InstanceState{ACTIVE, LEAVING, PENDING, JOINING, LEFT} {
870870
if shouldExtendReplicaSet(s) {
871871
op |= (0x10000 << s)
872872
}

0 commit comments

Comments
 (0)