Skip to content

Commit

Permalink
pass ut
Browse files Browse the repository at this point in the history
Signed-off-by: 童剑 <[email protected]>
  • Loading branch information
bufferflies committed Jan 13, 2025
1 parent d1da5b5 commit 86ba3da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/schedule/schedulers/balance_key_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/tikv/pd/pkg/schedule/operator"
"github.com/tikv/pd/pkg/schedule/plan"
"github.com/tikv/pd/pkg/schedule/types"
"github.com/tikv/pd/pkg/utils/syncutil"
)

const (
Expand Down Expand Up @@ -52,7 +53,8 @@ func (handler *balanceKeyRangeSchedulerHandler) listConfig(w http.ResponseWriter
}

type balanceKeyRangeSchedulerConfig struct {
baseDefaultSchedulerConfig
syncutil.RWMutex
schedulerConfig
balanceKeyRangeSchedulerParam
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/schedule/schedulers/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ func schedulersRegister() {
RegisterScheduler(types.BalanceKeyRangeScheduler, func(opController *operator.Controller,
storage endpoint.ConfigStorage, decoder ConfigDecoder, _ ...func(string) error) (Scheduler, error) {
conf := &balanceKeyRangeSchedulerConfig{
baseDefaultSchedulerConfig: newBaseDefaultSchedulerConfig(),
schedulerConfig: newBaseDefaultSchedulerConfig(),
}
if err := decoder(conf); err != nil {
return nil, err
Expand Down

0 comments on commit 86ba3da

Please sign in to comment.