mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
bugfix: "note" and "expire-time" backup metainformation fields must be preserved during merge
This commit is contained in:
@@ -702,6 +702,15 @@ merge_chain(parray *parent_chain, pgBackup *full_backup, pgBackup *dest_backup)
|
||||
full_backup->compress_alg = dest_backup->compress_alg;
|
||||
full_backup->compress_level = dest_backup->compress_level;
|
||||
|
||||
/* If incremental backup is pinned,
|
||||
* then result FULL backup must also be pinned.
|
||||
*/
|
||||
if (dest_backup->expire_time)
|
||||
full_backup->expire_time = dest_backup->expire_time;
|
||||
|
||||
if (dest_backup->note)
|
||||
full_backup->note = pgut_strdup(dest_backup->note);
|
||||
|
||||
/* FULL backup must inherit wal mode. */
|
||||
full_backup->stream = dest_backup->stream;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user