Skip to content

Commit

Permalink
revert limit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dantin committed Sep 15, 2017
1 parent 4ea37d4 commit 7b85640
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 @@ -111,6 +111,11 @@ func (c *coordinator) dispatch(region *core.RegionInfo) {
}
}

// Check replica operator.
if c.limiter.operatorCount(core.RegionKind) >= c.opt.GetReplicaScheduleLimit() {
return
}

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

0 comments on commit 7b85640

Please sign in to comment.