summaryrefslogtreecommitdiff
path: root/contrib/userlock/user_locks.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-08-27 17:07:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-08-27 17:07:42 +0000
commit1785acebf2ed14fd66955e2d9a55d77a025f418d (patch)
tree0c2c3ebe3c71cebd822549fd07fcad38b0985326 /contrib/userlock/user_locks.c
parentef16b4e1574799b6e2aa6549a6eda5e4867675ec (diff)
Introduce local hash table for lock state, as per recent proposal.
PROCLOCK structs in shared memory now have only a bitmask for held locks, rather than counts (making them 40 bytes smaller, which is a good thing). Multiple locks within a transaction are counted in the local hash table instead, and we have provision for tracking which ResourceOwner each count belongs to. Solves recently reported problem with memory leakage within long transactions.
Diffstat (limited to 'contrib/userlock/user_locks.c')
-rw-r--r--contrib/userlock/user_locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/userlock/user_locks.c b/contrib/userlock/user_locks.c
index f2cd7b2f76d..3dee92ea316 100644
--- a/contrib/userlock/user_locks.c
+++ b/contrib/userlock/user_locks.c
@@ -75,7 +75,7 @@ user_write_unlock_oid(Oid oid)
int
user_unlock_all(void)
{
- return LockReleaseAll(USER_LOCKMETHOD, MyProc, true);
+ return LockReleaseAll(USER_LOCKMETHOD, true);
}
/* end of file */