Skip to content

Commit 7a53d06

Browse files
committed
fix external restore
1 parent 883ad72 commit 7a53d06

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,6 +397,7 @@ 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
400401
}
401402

402403
l.Info("recovery started")
@@ -429,7 +430,6 @@ func (a *Agent) Restore(ctx context.Context, r *ctrl.RestoreCmd, opid ctrl.OPID,
429430
return
430431
}
431432

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)