Skip to content

Commit

Permalink
server: skip check a region if there is already a pending operator. (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing committed May 7, 2018
1 parent 9b824d2 commit 2eacc5a
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 2eacc5a

Please sign in to comment.