Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Nov 9, 2023
1 parent f1c4f31 commit b6aa27d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/schedule/checker/rule_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,7 @@ func (c *RuleChecker) fixOrphanPeers(region *core.RegionInfo, fit *placement.Reg

checkDownPeer := func(peers []*metapb.Peer) (*metapb.Peer, bool) {
for _, p := range peers {
if isInDisconnectedStore(p) {
return p, true
}
if isDownPeer(p.GetId()) {
if isInDisconnectedStore(p) || isDownPeer(p.GetId()) {
return p, true
}
if isPendingPeer(p.GetId()) {
Expand Down

0 comments on commit b6aa27d

Please sign in to comment.