Skip to content

Commit

Permalink
cherry pick #2972 to release-4.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>
  • Loading branch information
rleungx authored and ti-srebot committed Sep 17, 2020
1 parent aeaac24 commit 5689d3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/schedule/checker/replica_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,15 @@ func (r *ReplicaChecker) Check(region *core.RegionInfo) *operator.Operator {
return nil
}
checkerCounter.WithLabelValues("replica_checker", "new-operator").Inc()
<<<<<<< HEAD
op, err := operator.CreateAddPeerOperator("make-up-replica", r.cluster, region, newPeer, operator.OpReplica)
if err != nil {
log.Debug("create make-up-replica operator fail", errs.ZapError(err))
return nil
}
=======
op.SetPriorityLevel(core.HighPriority)
>>>>>>> 191e733... checker: set high priority for making up replicas (#2972)
return op
}

Expand Down

0 comments on commit 5689d3e

Please sign in to comment.