Skip site navigation (1) Skip section navigation (2)

pgsql-server: Add some code to Assert that when we release pin on a

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Add some code to Assert that when we release pin on a
Date: 2004-06-11 16:43:25
Message-ID: 20040611164325.1B7CDD1B19C@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Add some code to Assert that when we release pin on a buffer, we are
not holding the buffer's cntx_lock or io_in_progress_lock.  A recent
report from Litao Wu makes me wonder whether it is ever possible for
us to drop a buffer and forget to release its cntx_lock.  The Assert
does not fire in the regression tests, but that proves little ...

Modified Files:
--------------
    pgsql-server/src/backend/storage/buffer:
        bufmgr.c (r1.169 -> r1.170)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/storage/buffer/bufmgr.c.diff?r1=1.169&r2=1.170)
    pgsql-server/src/backend/storage/lmgr:
        lwlock.c (r1.19 -> r1.20)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/storage/lmgr/lwlock.c.diff?r1=1.19&r2=1.20)
    pgsql-server/src/include/storage:
        lwlock.h (r1.11 -> r1.12)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/storage/lwlock.h.diff?r1=1.11&r2=1.12)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2004-06-11 17:09:14
Subject: pgsql-server: Use sizeof() rather than strlen() in array size.
Previous:From: Bruce MomjianDate: 2004-06-11 16:36:31
Subject: pgsql-server: Cleanup use of Win32 START by using "" for title.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group