Skip to content

Commit e189b5b

Browse files
committed
Revert "fix external restore"
This reverts commit 7a53d06.
1 parent 7a53d06 commit e189b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/pbm-agent/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ func (a *Agent) Restore(ctx context.Context, r *ctrl.RestoreCmd, opid ctrl.OPID,
397397
return
398398
}
399399
bcpType = bcp.Type
400-
r.BackupName = bcp.Name
401400
}
402401

403402
l.Info("recovery started")
@@ -430,6 +429,7 @@ func (a *Agent) Restore(ctx context.Context, r *ctrl.RestoreCmd, opid ctrl.OPID,
430429
return
431430
}
432431

432+
r.BackupName = bcp.Name
433433
err = rstr.Snapshot(ctx, r, r.OplogTS, opid, l, a.closeCMD, a.HbPause)
434434
}
435435
if err != nil {

0 commit comments

Comments
 (0)