Content-Length: 261116 | pFad | http://github.com/postgrespro/postgres_cluster/commit/889201e668ad4882128f925d78a4279f26a46281

B9 Fix bug in deadlock detection · postgrespro/postgres_cluster@889201e · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/889201e668ad4882128f925d78a4279f26a46281

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy