提交 210d8b5a 编写于 作者: P Paul Guo 提交者: Paul Guo

Add debugging code for the "latch already owned" error.

We've seen such a case on a stable release but it is hard to debug via the
message only, so let's provide more details in the error message.
上级 9eb9c2ac
......@@ -260,7 +260,8 @@ OwnLatch(volatile Latch *latch)
#endif
if (latch->owner_pid != 0)
elog(ERROR, "latch already owned");
elog(ERROR, "latch already owned by pid %d (is_set: %d)",
latch->owner_pid, (int) latch->is_set);
latch->owner_pid = MyProcPid;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册