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

Fix the config error in restore #2250

Merged
merged 15 commits into from
Apr 24, 2020
3 changes: 2 additions & 1 deletion cmd/backup-manager/app/import/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ func (ro *Options) loadTidbClusterData(restorePath string) error {
"--status-addr=0.0.0.0:8289",
"--backend=tidb",
"--server-mode=false",
"–-log-file=",
"--log-file=",
"--tidb-port=4000",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ro.Port.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated.

fmt.Sprintf("--tidb-user=%s", ro.User),
fmt.Sprintf("--tidb-password=%s", ro.Password),
fmt.Sprintf("--tidb-host=%s", ro.Host),
Expand Down