pgsql: Factor out lock cleanup code that is needed in several places in

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Factor out lock cleanup code that is needed in several places in
Date: 2005-05-19 23:30:18
Message-ID: 20050519233018.F3B0852844@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/contrib/userlock:
user_locks.c (r1.16 -> r1.17)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/userlock/user_locks.c.diff?r1=1.16&r2=1.17)
pgsql/src/backend/storage/lmgr:
lock.c (r1.151 -> r1.152)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/lock.c.diff?r1=1.151&r2=1.152)
pgsql/src/include/storage:
lock.h (r1.85 -> r1.86)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/lock.h.diff?r1=1.85&r2=1.86)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-05-19 23:57:12 pgsql: Update comment that I missed the first time around.
Previous Message Alvaro Herrera 2005-05-19 22:46:33 Re: pgsql: Split the shared-memory array of PGPROC pointers out of the