提交 34bd7699 编写于 作者: A Ashwin Agrawal

PANIC in debug for "local snapshot's xmin is older".

To help debug the issue, PANIC incase encounter this shouldn't happen case.
上级 6b1c7fc2
......@@ -216,7 +216,15 @@ DistributedLog_AdvanceOldestXmin(TransactionId oldestLocalXmin,
/* sanity check, this shouldn't happen... */
if (TransactionIdFollows(oldestXmin, oldestLocalXmin))
elog(ERROR, "local snapshot's xmin is older than recorded distributed oldestxmin");
{
#ifdef USE_ASSERT_CHECKING
elog(PANIC,
#else
elog(ERROR,
#endif
"local snapshot's xmin (%u) is older than recorded distributed oldestxmin (%u)",
oldestLocalXmin, oldestXmin);
}
currPage = -1;
while (!TransactionIdEquals(oldestXmin, oldestLocalXmin))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册