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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy