]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clean up lockmanager data structures some more, in preparation for planned
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Jan 2001 22:30:06 +0000 (22:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Jan 2001 22:30:06 +0000 (22:30 +0000)
commite84c4290627c2e08f1ee9c199aa567d32b1d0fa7
treefe8755abd291facdf1fe72aa7e6197a4b303ce40
parent56f5f2bf82c6b5943cbb5337f8388fbb9917162d
Clean up lockmanager data structures some more, in preparation for planned
rewrite of deadlock checking.  Lock holder objects are now reachable from
the associated LOCK as well as from the owning PROC.  This makes it
practical to find all the processes holding a lock, as well as all those
waiting on the lock.  Also, clean up some of the grottier aspects of the
SHMQueue API, and cause the waitProcs list to be stored in the intuitive
direction instead of the nonintuitive one.  (Bet you didn't know that
the code followed the 'prev' link to get to the next waiting process,
instead of the 'next' link.  It doesn't do that anymore.)
src/backend/storage/ipc/shmqueue.c
src/backend/storage/lmgr/README
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/proc.c
src/include/storage/lock.h
src/include/storage/proc.h
src/include/storage/shmem.h