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

Commit072521b

Browse files
Rely only on checkpoint 1 at end of recovery.
Searching for checkpoint 2 (previous) is notcorrect in all cases.Bug report from Heikki Linnakangas
1 parente1c1e21 commit072521b

File tree

1 file changed

+7
-1
lines changed
  • src/backend/access/transam

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5777,7 +5777,13 @@ StartupXLOG(void)
57775777
if (fast_promote)
57785778
{
57795779
checkPointLoc=ControlFile->prevCheckPoint;
5780-
record=ReadCheckpointRecord(xlogreader,checkPointLoc,2, false);
5780+
5781+
/*
5782+
* Confirm the last checkpoint is available for us to recover
5783+
* from if we fail. Note that we don't check for the secondary
5784+
* checkpoint since that isn't available in most base backups.
5785+
*/
5786+
record=ReadCheckpointRecord(xlogreader,checkPointLoc,1, false);
57815787
if (record!=NULL)
57825788
{
57835789
checkpoint_wait= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp