We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1c1e21 commit 072521bCopy full SHA for 072521b
src/backend/access/transam/xlog.c
@@ -5777,7 +5777,13 @@ StartupXLOG(void)
5777
if (fast_promote)
5778
{
5779
checkPointLoc = ControlFile->prevCheckPoint;
5780
- record = ReadCheckpointRecord(xlogreader, checkPointLoc, 2, false);
+
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);
5787
if (record != NULL)
5788
5789
checkpoint_wait = false;
0 commit comments