projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91a4a6
)
Fix incorrect decision about which lock to take.
author
Robert Haas
<rhaas@postgresql.org>
Sun, 21 Feb 2016 11:36:41 +0000
(17:06 +0530)
committer
Robert Haas
<rhaas@postgresql.org>
Sun, 21 Feb 2016 11:36:41 +0000
(17:06 +0530)
Spotted by Tom Lane.
src/backend/storage/lmgr/proc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/lmgr/proc.c
b/src/backend/storage/lmgr/proc.c
index 641ef1182b8afd84becf670aab81ab7ea908970f..114fba0d384aa556e8a0de43e97da706e79cf035 100644
(file)
--- a/
src/backend/storage/lmgr/proc.c
+++ b/
src/backend/storage/lmgr/proc.c
@@
-1805,7
+1805,7
@@
BecomeLockGroupMember(PGPROC *leader, int pid)
* initialization and never change thereafter; so we will acquire the
* correct lock even if the leader PGPROC is in process of being recycled.
*/
- leader_lwlock = LockHashPartitionLockByProc(
MyProc
);
+ leader_lwlock = LockHashPartitionLockByProc(
leader
);
LWLockAcquire(leader_lwlock, LW_EXCLUSIVE);
/* Try to join the group */