mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user