We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d91a4a6 commit 88aca56Copy full SHA for 88aca56
src/backend/storage/lmgr/proc.c
@@ -1805,7 +1805,7 @@ BecomeLockGroupMember(PGPROC *leader, int pid)
1805
* initialization and never change thereafter; so we will acquire the
1806
* correct lock even if the leader PGPROC is in process of being recycled.
1807
*/
1808
- leader_lwlock = LockHashPartitionLockByProc(MyProc);
+ leader_lwlock = LockHashPartitionLockByProc(leader);
1809
LWLockAcquire(leader_lwlock, LW_EXCLUSIVE);
1810
1811
/* Try to join the group */
0 commit comments