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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-06-11 17:09:14 | pgsql-server: Use sizeof() rather than strlen() in array size. |
Previous Message | Bruce Momjian | 2004-06-11 16:36:31 | pgsql-server: Cleanup use of Win32 START by using "" for title. |