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

Commit 11d8a7d

Browse files
knizhnikkelvich
authored andcommitted
Fix bug in deadlock detection
1 parent 5c26b9d commit 11d8a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)