bugfix: full backup, produced by merge of multi-timeline chain, now correctly inherits timeline ID of destination backup

This commit is contained in:
Grigory Smolkin
2020-05-02 21:29:01 +03:00
parent 96090b2522
commit c0f33fc687
+2
View File
@@ -690,6 +690,8 @@ merge_chain(parray *parent_chain, pgBackup *full_backup, pgBackup *dest_backup)
full_backup->stop_lsn = dest_backup->stop_lsn;
full_backup->recovery_time = dest_backup->recovery_time;
full_backup->recovery_xid = dest_backup->recovery_xid;
full_backup->tli = dest_backup->tli;
full_backup->from_replica = dest_backup->from_replica;
pfree(full_backup->external_dir_str);
full_backup->external_dir_str = pgut_strdup(dest_backup->external_dir_str);