aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 5a97edf50fc..90069196f5c 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -6332,9 +6332,12 @@ CheckRecoveryConsistency(void)
return;
/*
- * Have we passed our safe starting point?
+ * Have we passed our safe starting point? Note that minRecoveryPoint
+ * is known to be incorrectly set if ControlFile->backupEndRequired,
+ * until the XLOG_BACKUP_RECORD arrives to advise us of the correct
+ * minRecoveryPoint. All we prior to that is its not consistent yet.
*/
- if (!reachedConsistency &&
+ if (!reachedConsistency && !ControlFile->backupEndRequired &&
XLByteLE(minRecoveryPoint, EndRecPtr) &&
XLogRecPtrIsInvalid(ControlFile->backupStartPoint))
{