diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 623704965f492e9d64e4bc6a7db5f7555c159eda..ff1973c8c8318317821a6a2f0efbef14776ba0c7 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))
 				{
 					/*