Commit 7c07006a authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Fix up error and log messages.

parent f4ca323d
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.9 2000/01/26 05:56:04 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.10 2000/02/15 03:00:37 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -995,7 +995,7 @@ next_record_is_invalid:; ...@@ -995,7 +995,7 @@ next_record_is_invalid:;
readId = EndRecPtr.xlogid; readId = EndRecPtr.xlogid;
readSeg = EndRecPtr.xrecoff / XLogSegSize; readSeg = EndRecPtr.xrecoff / XLogSegSize;
readOff = (EndRecPtr.xrecoff % XLogSegSize) / BLCKSZ; readOff = (EndRecPtr.xrecoff % XLogSegSize) / BLCKSZ;
elog(LOG, "Formating logfile %u seg %u block %u at offset %u", elog(LOG, "Formatting logfile %u seg %u block %u at offset %u",
readId, readSeg, readOff, EndRecPtr.xrecoff % BLCKSZ); readId, readSeg, readOff, EndRecPtr.xrecoff % BLCKSZ);
readFile = XLogFileOpen(readId, readSeg, false); readFile = XLogFileOpen(readId, readSeg, false);
if (lseek(readFile, (off_t)(readOff * BLCKSZ), SEEK_SET) < 0) if (lseek(readFile, (off_t)(readOff * BLCKSZ), SEEK_SET) < 0)
...@@ -1026,7 +1026,7 @@ next_record_is_invalid:; ...@@ -1026,7 +1026,7 @@ next_record_is_invalid:;
if (readOff > 0) if (readOff > 0)
{ {
if (!XLByteEQ(tmpRecPtr, EndRecPtr)) if (!XLByteEQ(tmpRecPtr, EndRecPtr))
elog(LOG, "Formating logfile %u seg %u block %u at offset 0", elog(LOG, "Formatting logfile %u seg %u block %u at offset 0",
readId, readSeg, readOff); readId, readSeg, readOff);
readOff *= BLCKSZ; readOff *= BLCKSZ;
memset(readBuf, 0, BLCKSZ); memset(readBuf, 0, BLCKSZ);
...@@ -1285,7 +1285,7 @@ tryAgain: ...@@ -1285,7 +1285,7 @@ tryAgain:
ControlFile->catalog_version_no, CATALOG_VERSION_NO); ControlFile->catalog_version_no, CATALOG_VERSION_NO);
if (ControlFile->state == DB_SHUTDOWNED) if (ControlFile->state == DB_SHUTDOWNED)
elog(LOG, "Data Base System was shutdowned at %s", elog(LOG, "Data Base System was shut down at %s",
str_time(ControlFile->time)); str_time(ControlFile->time));
else if (ControlFile->state == DB_SHUTDOWNING) else if (ControlFile->state == DB_SHUTDOWNING)
elog(LOG, "Data Base System was interrupted when shutting down at %s", elog(LOG, "Data Base System was interrupted when shutting down at %s",
...@@ -1349,7 +1349,7 @@ tryAgain: ...@@ -1349,7 +1349,7 @@ tryAgain:
if (recovery > 0) if (recovery > 0)
{ {
elog(LOG, "The DataBase system was not properly shutdowned\n" elog(LOG, "The DataBase system was not properly shut down\n"
"\tAutomatic recovery is in progress..."); "\tAutomatic recovery is in progress...");
ControlFile->state = DB_IN_RECOVERY; ControlFile->state = DB_IN_RECOVERY;
ControlFile->time = time(NULL); ControlFile->time = time(NULL);
...@@ -1456,11 +1456,11 @@ void ...@@ -1456,11 +1456,11 @@ void
ShutdownXLOG() ShutdownXLOG()
{ {
elog(LOG, "Data Base System is shutting down at %s", str_time(time(NULL))); elog(LOG, "Data Base System shutting down at %s", str_time(time(NULL)));
CreateCheckPoint(true); CreateCheckPoint(true);
elog(LOG, "Data Base System is shutdowned at %s", str_time(time(NULL))); elog(LOG, "Data Base System shut down at %s", str_time(time(NULL)));
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment