postgres.git / summary / log / commit / refs
commit dd7353dde82ad451bf681b37175be128995330fe
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Wed Nov 28 09:45:30 2012 +0000
First released in: 9.3.0, 9.2.2
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.
src/backend/access/transam/xlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 623704965f4..ff1973c8c83 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -5859,7 +5859,7 @@ StartupXLOG(void)
/* Pop the error context stack */
error_context_stack = errcallback.previous;
- if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint) &&
+ if (!XLogRecPtrIsInvalid(ControlFile->backupEndPoint) &&
XLByteLE(ControlFile->backupEndPoint, EndRecPtr))
{
/*
[parent: e78d288c895b]