Skip to content
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
3 changes: 0 additions & 3 deletions br/cmd/br/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ func NewBackupCommand() *cobra.Command {
// Do not run stat worker in BR.
session.DisableStats4Test()

// Do not run ddl worker in BR.
config.GetGlobalConfig().Instance.TiDBEnableDDL.Store(false)

summary.SetUnit(summary.BackupUnit)
return nil
},
Expand Down
4 changes: 4 additions & 0 deletions br/cmd/br/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/pingcap/log"
"github.com/pingcap/tidb/br/pkg/utils"
"github.com/pingcap/tidb/pkg/config"
"github.com/spf13/cobra"
"go.uber.org/zap"
)
Expand All @@ -22,6 +23,9 @@ func main() {
}
DefineCommonFlags(rootCmd)
SetDefaultContext(ctx)

config.GetGlobalConfig().Instance.TiDBEnableDDL.Store(false)

rootCmd.AddCommand(
NewDebugCommand(),
NewBackupCommand(),
Expand Down
Loading