Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

pdutil: use temp pause config (#592) #596

Merged
merged 25 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"go.uber.org/zap"

berrors "github.com/pingcap/br/pkg/errors"
"github.com/pingcap/br/pkg/pdutil"
"github.com/pingcap/br/pkg/restore"
"github.com/pingcap/br/pkg/rtree"
"github.com/pingcap/br/pkg/task"
Expand Down Expand Up @@ -367,10 +366,10 @@ func setPDConfigCommand() *cobra.Command {
}
defer mgr.Close()

if err := mgr.UpdatePDScheduleConfig(ctx, pdutil.DefaultPDCfg); err != nil {
if err := mgr.UpdatePDScheduleConfig(ctx); err != nil {
return errors.Annotate(err, "fail to update PD merge config")
}
log.Info("add pd configs succeed", zap.Any("config", pdutil.DefaultPDCfg))
log.Info("add pd configs succeed")
return nil
},
}
Expand Down
Loading