Content-Length: 259809 | pFad | http://github.com/postgrespro/postgres_cluster/commit/dd7353dde82ad451bf681b37175be128995330fe

6E If we don't have a backup-end-location, don't claim we've reached it. · postgrespro/postgres_cluster@dd7353d · GitHub
Skip to content

Commit dd7353d

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 e78d288 commit dd7353d

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
@@ -5859,7 +5859,7 @@ StartupXLOG(void)
58595859
/* Pop the error context stack */
58605860
error_context_stack = errcallback.previous;
58615861

5862-
if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint) &&
5862+
if (!XLogRecPtrIsInvalid(ControlFile->backupEndPoint) &&
58635863
XLByteLE(ControlFile->backupEndPoint, EndRecPtr))
58645864
{
58655865
/*

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/dd7353dde82ad451bf681b37175be128995330fe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy