Factor out lock cleanup code that is needed in several places in lock.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 191b13aacaae7557d3eab6733c06269ce2c0993a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-05-19T23:30:18Z
Releases: 8.1.0
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.

Files

PathChange+/−
contrib/userlock/user_locks.c modified +3 −1
src/backend/storage/lmgr/lock.c modified +77 −137
src/include/storage/lock.h modified +2 −2