mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-08 14:28:36 +02:00
Fix archive backup mode due to incorrect timeline assigned
This bug has been introduced by some older code, it looks that it will be necessary to re-create a battery of regression tests to test all those things automtically, as former tests contain nothing to test archive mode directly.
This commit is contained in:
parent
e5ab0917cc
commit
26b8870665
6
backup.c
6
backup.c
@ -1002,14 +1002,12 @@ wait_for_archive(pgBackup *backup, const char *sql)
|
||||
* Enforce TLI obtention if backup is not present as this code
|
||||
* path can be taken as a callback at exit.
|
||||
*/
|
||||
if (backup != NULL)
|
||||
tli = backup->tli;
|
||||
else
|
||||
tli = get_current_timeline();
|
||||
tli = get_current_timeline();
|
||||
|
||||
/* Fill in fields if backup exists */
|
||||
if (backup != NULL)
|
||||
{
|
||||
backup->tli = tli;
|
||||
backup->stop_lsn = lsn;
|
||||
elog(LOG, _("%s(): tli=%X lsn=%X/%08X"),
|
||||
__FUNCTION__, backup->tli,
|
||||
|
Loading…
x
Reference in New Issue
Block a user