1
0
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:
Tom Lane
2005-05-19 23:30:18 +00:00
parent ee3b71f6bc
commit 191b13aaca
3 changed files with 83 additions and 141 deletions

View File

@ -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;
}