Skip to content

Commit

Permalink
Ring: remove redundant 'LEAVING' status in Operation construction (#4485
Browse files Browse the repository at this point in the history
)

Signed-off-by: lanmengran1 <lanmengran1@jd.com>
  • Loading branch information
amoylan2 authored Oct 1, 2021
1 parent 9e8b48b commit 1d29897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ring/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1d29897

Please sign in to comment.