Thread: pgsql: Release proclock immediately in RemoveFromWaitQueue() if it

pgsql: Release proclock immediately in RemoveFromWaitQueue() if it

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Release proclock immediately in RemoveFromWaitQueue() if it represents
no held locks.  This maintains the invariant that proclocks are present
only for procs that are holding or awaiting a lock; when this is not
true, LockRelease will fail.  Per report from Stephen Clouse.

Modified Files:
--------------
    pgsql/src/backend/storage/lmgr:
        lock.c (r1.146 -> r1.147)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/lock.c.diff?r1=1.146&r2=1.147)