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

Commit4cea603

Browse files
committed
Remove piece of code to zero out minRecoveryPoint when starting crash
recovery. It's zeroed out whenever a checkpoint is written, so the onlyscenario where the removed code did anything is when you kill archiverecovery, remove recovery.conf, and start up the server, so that it goesinto crash recovery instead. That's a "don't do that" scenario, but itseems better to not clear minRecoveryPoint but instead update it like wedo in archive recovery, which is what will now happen.
1 parent9a75803 commit4cea603

File tree

1 file changed

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

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.368 2010/02/0804:33:53 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.369 2010/02/0809:08:51 heikki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -5656,11 +5656,6 @@ StartupXLOG(void)
56565656
if (XLByteLT(ControlFile->minRecoveryPoint,checkPoint.redo))
56575657
ControlFile->minRecoveryPoint=checkPoint.redo;
56585658
}
5659-
else
5660-
{
5661-
XLogRecPtrInvalidXLogRecPtr= {0,0};
5662-
ControlFile->minRecoveryPoint=InvalidXLogRecPtr;
5663-
}
56645659
/*
56655660
* set backupStartupPoint if we're starting archive recovery from a
56665661
* base backup

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp