Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Song Gao <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Mar 16, 2021
1 parent 510712c commit ccbf4c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/schedulers/hot_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,12 +754,8 @@ func (bs *balanceSolver) filterDstStores() map[uint64]*storeLoadDetail {
filters = append(filters, leaderFilter)
}

regionStores := make(map[uint64]*core.StoreInfo, 0)
for _, store := range bs.cluster.GetFollowerStores(bs.cur.region) {
regionStores[store.GetID()] = store
}
for storeID := range bs.stLoadDetail {
if store, ok := regionStores[storeID]; ok {
if _, ok := bs.stLoadDetail[store.GetID()]; ok {
candidates = append(candidates, store)
}
}
Expand Down

0 comments on commit ccbf4c4

Please sign in to comment.