Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Sep 12, 2019
1 parent 9923de6 commit e3179c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/schedule/filter/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// Filter is an interface to filter source and target store.
type Filter interface {
// ActOn is used to indicate that the filter will act on.
// ActOn is used to indicate where the filter will act on.
ActOn() string
Type() string
// Return true if the store should not be used as a source store.
Expand Down
2 changes: 1 addition & 1 deletion server/schedule/filter/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
Subsystem: "schedule",
Name: "filter",
Help: "Counter of the filter",
}, []string{"action", "address", "store", "acton", "type"})
}, []string{"action", "address", "store", "act-on", "type"})
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion server/schedulers/adjacent_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (a *adjacentState) len() int {
// on each store.
func newBalanceAdjacentRegionScheduler(opController *schedule.OperatorController, args ...uint64) schedule.Scheduler {
filters := []filter.Filter{
filter.StoreStateFilter{Act: balanceAdjacentRegionSchedulerName, MoveRegion: true},
filter.StoreStateFilter{Act: balanceAdjacentRegionSchedulerName, TransferLeader: true, MoveRegion: true},
}
base := newBaseScheduler(opController)
s := &balanceAdjacentRegionScheduler{
Expand Down

0 comments on commit e3179c6

Please sign in to comment.