Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26b8870

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 benecessary to re-create a battery of regression tests to test all thosethings automtically, as former tests contain nothing to test archivemode directly.
1 parente5ab091 commit26b8870

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)

[8]ページ先頭

©2009-2025 Movatter.jp