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

Commit6c4f666

Browse files
committed
Fix thinko in previous commit.
We must still initialize minRecoveryPoint if we start straight with archiverecovery, e.g when recovering from a normal base backup taken withpg_start/stop_backup. Otherwise we never consider the system consistent.
1 parent6d06049 commit6c4f666

File tree

1 file changed

+9
-0
lines changed
  • src/backend/access/transam

1 file changed

+9
-0
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5265,6 +5265,15 @@ StartupXLOG(void)
52655265
ControlFile->prevCheckPoint=ControlFile->checkPoint;
52665266
ControlFile->checkPoint=checkPointLoc;
52675267
ControlFile->checkPointCopy=checkPoint;
5268+
if (InArchiveRecovery)
5269+
{
5270+
/* initialize minRecoveryPoint if not set yet */
5271+
if (ControlFile->minRecoveryPoint<checkPoint.redo)
5272+
{
5273+
ControlFile->minRecoveryPoint=checkPoint.redo;
5274+
ControlFile->minRecoveryPointTLI=checkPoint.ThisTimeLineID;
5275+
}
5276+
}
52685277

52695278
/*
52705279
* Set backupStartPoint if we're starting recovery from a base backup.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp