mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Goodbye ABORT. Hello ERROR for all errors.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.9 1998/01/05 03:32:52 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.10 1998/01/07 21:04:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -87,7 +87,7 @@ BufTableLookup(BufferTag *tagPtr)
|
||||
|
||||
if (!result)
|
||||
{
|
||||
elog(ABORT, "BufTableLookup: BufferLookup table corrupted");
|
||||
elog(ERROR, "BufTableLookup: BufferLookup table corrupted");
|
||||
return (NULL);
|
||||
}
|
||||
if (!found)
|
||||
@ -122,7 +122,7 @@ BufTableDelete(BufferDesc *buf)
|
||||
|
||||
if (!(result && found))
|
||||
{
|
||||
elog(ABORT, "BufTableDelete: BufferLookup table corrupted");
|
||||
elog(ERROR, "BufTableDelete: BufferLookup table corrupted");
|
||||
return (FALSE);
|
||||
}
|
||||
|
||||
@ -145,14 +145,14 @@ BufTableInsert(BufferDesc *buf)
|
||||
if (!result)
|
||||
{
|
||||
Assert(0);
|
||||
elog(ABORT, "BufTableInsert: BufferLookup table corrupted");
|
||||
elog(ERROR, "BufTableInsert: BufferLookup table corrupted");
|
||||
return (FALSE);
|
||||
}
|
||||
/* found something else in the table ! */
|
||||
if (found)
|
||||
{
|
||||
Assert(0);
|
||||
elog(ABORT, "BufTableInsert: BufferLookup table corrupted");
|
||||
elog(ERROR, "BufTableInsert: BufferLookup table corrupted");
|
||||
return (FALSE);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user