1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +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/storage/ipc/shmem.c,v 1.14 1997/09/18 20:21:30 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.15 1998/01/05 03:33:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -418,7 +418,7 @@ ShmemPIDLookup(int pid, SHMEM_OFFSET *locationPtr)
{
SpinRelease(BindingLock);
elog(WARN, "ShmemInitPID: BindingTable corrupted");
elog(ABORT, "ShmemInitPID: BindingTable corrupted");
return (FALSE);
}
@@ -469,7 +469,7 @@ ShmemPIDDestroy(int pid)
if (!result)
{
elog(WARN, "ShmemPIDDestroy: PID table corrupted");
elog(ABORT, "ShmemPIDDestroy: PID table corrupted");
return (INVALID_OFFSET);
}
@@ -555,7 +555,7 @@ ShmemInitStruct(char *name, unsigned long size, bool *foundPtr)
SpinRelease(BindingLock);
elog(WARN, "ShmemInitStruct: Binding Table corrupted");
elog(ABORT, "ShmemInitStruct: Binding Table corrupted");
return (NULL);
}
@@ -640,6 +640,6 @@ TransactionIdIsInProgress(TransactionId xid)
}
SpinRelease(BindingLock);
elog(WARN, "TransactionIdIsInProgress: BindingTable corrupted");
elog(ABORT, "TransactionIdIsInProgress: BindingTable corrupted");
return (false);
}