aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-11-28 11:45:30 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-11-28 15:14:27 +0200
commitdd7353dde82ad451bf681b37175be128995330fe (patch)
treeac957f49a997f6460b3db2acd8a5e4cc02f3d807 /src
parente78d288c895bd296e3cb1ca29c7fe2431eef3fcd (diff)
downloadpostgresql-dd7353dde82ad451bf681b37175be128995330fe.tar.gz
postgresql-dd7353dde82ad451bf681b37175be128995330fe.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
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))
{
/*