Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br: Fix new collaction enable check (#33500) #33532

Merged
merged 13 commits into from
Apr 28, 2022
Prev Previous commit
Next Next commit
fix fmt
  • Loading branch information
3pointer committed Apr 28, 2022
commit 6b5db35009482a16dc93c66dfaa5490712fea4a7
3 changes: 1 addition & 2 deletions br/pkg/task/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func CheckNewCollationEnable(
storage kv.Storage,
) error {
if backupNewCollationEnable == "" {
log.Warn("new_collations_enabled_on_first_bootstrap not found in backupmeta. "+
log.Warn("new_collations_enabled_on_first_bootstrap not found in backupmeta. " +
"we assume that this config is as same as backup cluster")
return nil
}
Expand All @@ -243,7 +243,6 @@ func CheckNewCollationEnable(
return nil
}


// RunRestore starts a restore task inside the current goroutine.
func RunRestore(c context.Context, g glue.Glue, cmdName string, cfg *RestoreConfig) error {
cfg.adjustRestoreConfig()
Expand Down