From 2b9e0690c79b308de2a2a88c19cb73f8570a3834 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 5 Feb 2009 13:38:45 +0200 Subject: [PATCH] Change error message if recovery ends before reaching consistency. --- src/backend/access/transam/xlog.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 0f647de5aa..67542b787f 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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"))); } /* -- 2.39.5