pgsql: Release proclock immediately in RemoveFromWaitQueue() if it - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Release proclock immediately in RemoveFromWaitQueue() if it
Date
Msg-id 20050301211459.E122356465@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
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)

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Allow Trace_lock_oidmin to be set to zero; this is a reasonable
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Release proclock immediately in RemoveFromWaitQueue() if it