Skip to content

Commit ffc3172

Browse files
committed
If we don't have a backup-end-location, don't claim we've reached it.
This was apparently a typo, which caused recovery to think that it immediately reached the end of backup, and allowed the database to start up too early. Reported by Jeff Janes. Backpatch to 9.2, where this code was introduced.
1 parent 786afc1 commit ffc3172

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6763,7 +6763,7 @@ StartupXLOG(void)
67636763
/* Pop the error context stack */
67646764
error_context_stack = errcontext.previous;
67656765

6766-
if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint) &&
6766+
if (!XLogRecPtrIsInvalid(ControlFile->backupEndPoint) &&
67676767
XLByteLE(ControlFile->backupEndPoint, EndRecPtr))
67686768
{
67696769
/*

0 commit comments

Comments
 (0)