Commit eb917c1a authored by Tom Lane's avatar Tom Lane

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

FATAL when it detects a nonzero reference count.  Reduce to ERROR.
parent 2a8b626d
...@@ -8,7 +8,7 @@ ...@@ -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, ...@@ -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: ...@@ -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,
......
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