1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-04-14 12:08:44 +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 a50ffed5d4
commit 04ff6f8fac

View File

@ -288,10 +288,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++)