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

Skip to content

Commit 04ff6f8

Browse files
committed
Inherit WAL mode from the PAGE backup
1 parent a50ffed commit 04ff6f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/merge.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,9 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
288288
to_backup->end_time = time(NULL);
289289

290290
/*
291-
* If one of the backups isn't "stream" backup then the target backup become
292-
* non-stream backup too.
291+
* Target backup must inherit wal mode too.
293292
*/
294-
to_backup->stream = to_backup->stream && from_backup->stream;
293+
to_backup->stream = from_backup->stream;
295294
/* Compute summary of size of regular files in the backup */
296295
to_backup->data_bytes = 0;
297296
for (i = 0; i < parray_num(files); i++)

0 commit comments

Comments
 (0)