/* State information for XLOG reading */
static XLogRecPtr ReadRecPtr; /* start of last record read */
-static XLogRecPtr EndRecPtr; /* end+1 of last record read. Also in shared mem */
+static XLogRecPtr EndRecPtr; /* end+1 of last record read */
static XLogRecord *nextRecord = NULL;
static TimeLineID lastPageTLI = 0;
static XLogRecPtr minRecoveryPoint; /* local copy of ControlFile->minRecoveryPoint */
/*
* Advance minRecoveryPoint in control file.
*
- * If we crash during reocvery, we must reach this point again before
- * the database is consistent. If minRecoveryPoint is already greater than
- * or equal to 'lsn', it is not updated.
+ * If we crash during recovery, we must reach this point again before the
+ * database is consistent. If minRecoveryPoint is already greater than or
+ * equal to 'lsn', it is not updated.
*/
static void
UpdateMinRecoveryPoint(XLogRecPtr lsn)
{
if (reachedStopPoint) /* stopped because of stop request */
ereport(FATAL,
- (errmsg("requested recovery stop point is before end time of backup dump")));
+ (errmsg("requested recovery stop point is before consistent recovery point")));
else /* ran off end of WAL */
ereport(FATAL,
- (errmsg("WAL ends before end time of backup dump")));
+ (errmsg("WAL ended before a consistent state was reached")));
}
/*