Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d579bc

Browse files
committed
Ignore stream param from backup if we start restore without backup_id.
1 parent c084fee commit 9d579bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

restore.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ do_restore(time_t backup_id,
204204
!satisfy_recovery_target(backup, rt))
205205
continue;
206206

207-
stream_wal = backup->stream;
207+
if (backup_id != 0)
208+
stream_wal = backup->stream;
208209

209210
print_backup_lsn(backup);
210211
restore_database(backup);

0 commit comments

Comments
 (0)