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)) { /*