Skip to content

Commit

Permalink
server: skip check a region if there is already a pending operator. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored and Connor1996 committed Apr 17, 2018
1 parent d80dad6 commit 59c5466
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ func (c *coordinator) patrolRegions() {
}

for _, region := range regions {
// Skip the region if there is already a pending operator.
if c.getOperator(region.GetId()) != nil {
continue
}

key = region.GetEndKey()

if op := c.namespaceChecker.Check(region); op != nil {
Expand Down

0 comments on commit 59c5466

Please sign in to comment.