Skip to content

Commit 26b8870

Browse files
author
Michael Paquier
committed
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.
1 parent e5ab091 commit 26b8870

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

backup.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,14 +1002,12 @@ wait_for_archive(pgBackup *backup, const char *sql)
10021002
* Enforce TLI obtention if backup is not present as this code
10031003
* path can be taken as a callback at exit.
10041004
*/
1005-
if (backup != NULL)
1006-
tli = backup->tli;
1007-
else
1008-
tli = get_current_timeline();
1005+
tli = get_current_timeline();
10091006

10101007
/* Fill in fields if backup exists */
10111008
if (backup != NULL)
10121009
{
1010+
backup->tli = tli;
10131011
backup->stop_lsn = lsn;
10141012
elog(LOG, _("%s(): tli=%X lsn=%X/%08X"),
10151013
__FUNCTION__, backup->tli,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy