8000 Fix bug in deadlock detection · postgrespro/postgres_cluster@889201e · GitHub
[go: up one dir, main page]

Skip to content

Commit 889201e

Browse files
committed
Fix bug in deadlock detection
1 parent 04a5c51 commit 889201e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ MtmSerializeLock(PROCLOCK* proclock, void* arg)
17241724
if ((proclock->holdMask & LOCKBIT_ON(lm)) && (conflictMask & LOCKBIT_ON(lm)))
17251725
{
17261726
MTM_TRACE("%d: %u(%u) waits for %u(%u)\n", MyProcPid, srcPgXact->xid, proc->pid, dstPgXact->xid, proclock->tag.myProc->pid);
1727-
MtmGetGtid(srcPgXact->xid, &gtid); /* transaction holding lock */
1727+
MtmGetGtid(dstPgXact->xid, &gtid); /* transaction holding lock */
17281728
ByteBufferAppendInt32(buf, gtid.node);
17291729
ByteBufferAppendInt32(buf, gtid.xid);
17301730
break;

0 commit comments

Comments
 (0)
0