Skip to content

Commit

Permalink
fix OpenDB error
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxGit committed Mar 2, 2020
1 parent 2c7416d commit ce4ee4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/backup-manager/app/export/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (bm *BackupManager) ProcessBackup() error {
var db *sql.DB
err = wait.PollImmediate(constants.PollInterval, constants.CheckTimeout, func() (done bool, err error) {
db, err = util.OpenDB(bm.GetDSN(constants.TidbMetaDB))
if err := db.Ping(); err != nil {
if err != nil {
klog.Warningf("can't connect to tidb cluster %s, err: %s", bm, err)
return false, nil
}
Expand Down

0 comments on commit ce4ee4e

Please sign in to comment.