]> granicus.if.org Git - postgresql/commit
Factor out lock cleanup code that is needed in several places in lock.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 May 2005 23:30:18 +0000 (23:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 May 2005 23:30:18 +0000 (23:30 +0000)
commit191b13aacaae7557d3eab6733c06269ce2c0993a
treeba50fb255a87d0d8368341699ec0887cc4f478ec
parentee3b71f6bce929b07636f76d1654832cb6b5a489
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.
contrib/userlock/user_locks.c
src/backend/storage/lmgr/lock.c
src/include/storage/lock.h