1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

I can't see any good reason for DropRelFileNodeBuffers to be issuing

FATAL when it detects a nonzero reference count.  Reduce to ERROR.
This commit is contained in:
Tom Lane
2004-09-06 17:31:32 +00:00
parent 2a8b626d48
commit eb917c1a21

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.176 2004/08/31 16:13:06 tgl Exp $ * $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.177 2004/09/06 17:31:32 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -1129,7 +1129,7 @@ DropRelFileNodeBuffers(RelFileNode rnode, bool istemp,
bufHdr->tag.blockNum >= firstDelBlock) bufHdr->tag.blockNum >= firstDelBlock)
{ {
if (LocalRefCount[i] != 0) if (LocalRefCount[i] != 0)
elog(FATAL, "block %u of %u/%u/%u is still referenced (local %u)", elog(ERROR, "block %u of %u/%u/%u is still referenced (local %u)",
bufHdr->tag.blockNum, bufHdr->tag.blockNum,
bufHdr->tag.rnode.spcNode, bufHdr->tag.rnode.spcNode,
bufHdr->tag.rnode.dbNode, bufHdr->tag.rnode.dbNode,
@ -1172,7 +1172,7 @@ recheck:
* There should be no pin on the buffer. * There should be no pin on the buffer.
*/ */
if (bufHdr->refcount != 0) if (bufHdr->refcount != 0)
elog(FATAL, "block %u of %u/%u/%u is still referenced (private %d, global %u)", elog(ERROR, "block %u of %u/%u/%u is still referenced (private %d, global %u)",
bufHdr->tag.blockNum, bufHdr->tag.blockNum,
bufHdr->tag.rnode.spcNode, bufHdr->tag.rnode.spcNode,
bufHdr->tag.rnode.dbNode, bufHdr->tag.rnode.dbNode,