mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Factor out lock cleanup code that is needed in several places in lock.c.
Also, remove the rather useless return value of LockReleaseAll. Change response to detection of corruption in the shared lock tables to PANIC, since that is the only way of cleaning up fully. Originally an idea of Heikki Linnakangas, variously hacked on by Alvaro Herrera and Tom Lane.
This commit is contained in:
@ -75,5 +75,7 @@ user_write_unlock_oid(Oid oid)
|
||||
int
|
||||
user_unlock_all(void)
|
||||
{
|
||||
return LockReleaseAll(USER_LOCKMETHOD, true);
|
||||
LockReleaseAll(USER_LOCKMETHOD, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user