提交 43f2fd58 编写于 作者: A Ashwin Agrawal

In debug PANIC for relcache decrement for bad reference count.

上级 3c727124
......@@ -1701,7 +1701,15 @@ RelationDecrementReferenceCount(Relation rel)
{
if (rel->rd_refcnt <= 0)
{
/*
* In CI intermittently ERROR is seen. To help debug the issue, just
* for debug builds elevating ERROR to PANIC.
*/
#ifdef USE_ASSERT_CHECKING
elog(PANIC,
#else
elog(ERROR,
#endif
"Relation decrement reference count found relation %u/%u/%u with bad count (reference count %d)",
rel->rd_node.spcNode,
rel->rd_node.dbNode,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册