Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eb917c1

Browse files
committed
I can't see any good reason for DropRelFileNodeBuffers to be issuing
FATAL when it detects a nonzero reference count. Reduce to ERROR.
1 parent 2a8b626 commit eb917c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/storage/buffer/bufmgr.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.176 2004/08/31 16:13:06 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.177 2004/09/06 17:31:32 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1129,7 +1129,7 @@ DropRelFileNodeBuffers(RelFileNode rnode, bool istemp,
11291129
bufHdr->tag.blockNum >= firstDelBlock)
11301130
{
11311131
if (LocalRefCount[i] != 0)
1132-
elog(FATAL, "block %u of %u/%u/%u is still referenced (local %u)",
1132+
elog(ERROR, "block %u of %u/%u/%u is still referenced (local %u)",
11331133
bufHdr->tag.blockNum,
11341134
bufHdr->tag.rnode.spcNode,
11351135
bufHdr->tag.rnode.dbNode,
@@ -1172,7 +1172,7 @@ DropRelFileNodeBuffers(RelFileNode rnode, bool istemp,
11721172
* There should be no pin on the buffer.
11731173
*/
11741174
if (bufHdr->refcount != 0)
1175-
elog(FATAL, "block %u of %u/%u/%u is still referenced (private %d, global %u)",
1175+
elog(ERROR, "block %u of %u/%u/%u is still referenced (private %d, global %u)",
11761176
bufHdr->tag.blockNum,
11771177
bufHdr->tag.rnode.spcNode,
11781178
bufHdr->tag.rnode.dbNode,

0 commit comments

Comments
 (0)