1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-05 14:15:01 +02:00

Inherit WAL mode from the PAGE backup

This commit is contained in:
Arthur Zakirov 2019-03-04 16:40:11 +03:00
parent 6f0d7beb9b
commit 6db82d0bd9

View File

@ -333,10 +333,9 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
to_backup->end_time = time(NULL);
/*
* If one of the backups isn't "stream" backup then the target backup become
* non-stream backup too.
* Target backup must inherit wal mode too.
*/
to_backup->stream = to_backup->stream && from_backup->stream;
to_backup->stream = from_backup->stream;
/* Compute summary of size of regular files in the backup */
to_backup->data_bytes = 0;
for (i = 0; i < parray_num(files); i++)