1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

Change elog(WARN) to elog(ERROR) and elog(ABORT).

This commit is contained in:
Bruce Momjian
1998-01-05 03:35:55 +00:00
parent 0af9137f14
commit 0d9fc5afd6
188 changed files with 1436 additions and 1433 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.20 1997/11/09 04:43:35 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.21 1998/01/05 03:34:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -74,7 +74,7 @@ elog(int lev, const char *fmt,...)
i = 0;
if (i > 30)
i = i % 30;
cp = "DEBUG:";
cp = "DEBUG: ";
break;
case DEBUG:
i = ElogDebugIndentLevel;
@ -170,12 +170,12 @@ elog(int lev, const char *fmt,...)
}
#endif /* !PG_STANDALONE */
if (lev == WARN)
if (lev == ERROR || lev == ABORT)
{
extern int InWarn;
extern int InErrorOrAbort;
ProcReleaseSpins(NULL); /* get rid of spinlocks we hold */
if (!InWarn)
if (!InErrorOrAbort)
{
kill(getpid(), 1); /* abort to traffic cop */
pause();