Skip to content

Commit

Permalink
add restoreErr to restore manager
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunzhu committed Jul 16, 2020
1 parent 7fbae14 commit eaf7392
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/backup-manager/app/restore/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ func (rm *Manager) performRestore(restore *v1alpha1.Restore, db *sql.DB) error {
if oldTikvGCTimeDuration < tikvGCTimeDuration {
err = rm.SetTikvGCLifeTime(db, oldTikvGCTime)
if err != nil {
if restoreErr != nil {
errs = append(errs, restoreErr)
}
errs = append(errs, err)
klog.Errorf("cluster %s reset tikv GC life time to %s failed, err: %s", rm, oldTikvGCTime, err)
uerr := rm.StatusUpdater.Update(restore, &v1alpha1.RestoreCondition{
Expand Down

0 comments on commit eaf7392

Please sign in to comment.