mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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.
This commit is contained in:
parent
e78d288c89
commit
dd7353dde8
@ -5859,7 +5859,7 @@ StartupXLOG(void)
|
|||||||
/* Pop the error context stack */
|
/* Pop the error context stack */
|
||||||
error_context_stack = errcallback.previous;
|
error_context_stack = errcallback.previous;
|
||||||
|
|
||||||
if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint) &&
|
if (!XLogRecPtrIsInvalid(ControlFile->backupEndPoint) &&
|
||||||
XLByteLE(ControlFile->backupEndPoint, EndRecPtr))
|
XLByteLE(ControlFile->backupEndPoint, EndRecPtr))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user