Change error message if recovery ends before reaching consistency.
authorHeikki Linnakangas <[email protected]>
Thu, 5 Feb 2009 11:38:45 +0000 (13:38 +0200)
committerHeikki Linnakangas <[email protected]>
Thu, 5 Feb 2009 11:38:45 +0000 (13:38 +0200)
src/backend/access/transam/xlog.c

index 0f647de5aa708d9c361cc7a7c9e5a176caf38d8d..67542b787fcfe538a5b873b97bf4a482c917068e 100644 (file)
@@ -418,7 +418,7 @@ static uint32 readRecordBufSize = 0;
 
 /* 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 */
@@ -1766,9 +1766,9 @@ XLogSetAsyncCommitLSN(XLogRecPtr asyncCommitLSN)
 /*
  * 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)
@@ -5434,10 +5434,10 @@ StartupXLOG(void)
        {
                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")));
        }
 
        /*