]> granicus.if.org Git - postgresql/commit
Add some code to Assert that when we release pin on a buffer, we are
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jun 2004 16:43:24 +0000 (16:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 11 Jun 2004 16:43:24 +0000 (16:43 +0000)
commite6cba71503fa80948a050e7e0126e932855e92cc
treeba900986f16b75133bf68f63458bd7bbbc440d9e
parent8d64b56206a73ac8413ab8b4a035e62e95f6ba99
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 ...
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/lwlock.c
src/include/storage/lwlock.h