bugfix: "note" and "expire-time" backup metainformation fields must be preserved during merge

This commit is contained in:
Grigory Smolkin
2020-04-18 22:53:05 +03:00
parent 1e2491eb80
commit 30fbea7d97
+9
View File
@@ -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;