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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy