]> granicus.if.org Git - postgresql/commit
Remove ShutdownBufferPoolAccess exit callback, and do the work in
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 25 Sep 2002 20:31:40 +0000 (20:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 25 Sep 2002 20:31:40 +0000 (20:31 +0000)
commit8a6fab412e35d8495201a13d8258f26b730306f5
treeb80702276508960201ba5211b96de8c646dd76f3
parent691aefcf4294c8262a8bf89258250470be1046a6
Remove ShutdownBufferPoolAccess exit callback, and do the work in
ProcKill instead, where we still have a PGPROC with which to wait on
LWLocks.  This fixes 'can't wait without a PROC structure' failures
occasionally seen during backend shutdown (I'm surprised they weren't
more frequent, actually).  Add an Assert() to LWLockAcquire to help
catch any similar mistakes in future.  Fix failure to update MyProcPid
for standalone backends and pgstat processes.
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/pgstat.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c