Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Sep 10, 2021
1 parent 2c5d9ba commit f00638e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/schedule/operator/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ func (rp RemovePeer) Influence(opInfluence OpInfluence, region *core.RegionInfo)
from.RegionSize -= regionSize
from.RegionCount--
if rp.IsDownStore {
from.AdjustStepCost(storelimit.RemovePeer, storelimit.SmallRegionThreshold)
return
}
from.AdjustStepCost(storelimit.RemovePeer, regionSize)
Expand Down

0 comments on commit f00638e

Please sign in to comment.