]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove BufferLocks[] array in favor of a single pointer to the buffer
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Oct 2004 18:05:07 +0000 (18:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Oct 2004 18:05:07 +0000 (18:05 +0000)
commit1c2de4774620469375e6393fbdbcdaffb0c2d0b5
tree64865055e4b11e6633293d6efe342c7edcd86c46
parent72f9013741833ddbecdbb46930bf0f62e4176803
Remove BufferLocks[] array in favor of a single pointer to the buffer
(if any) currently waited for by LockBufferForCleanup(), which is all
that we were using it for anymore.  Saves some space and eliminates
proportional-to-NBuffers slowdown in UnlockBuffers().
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/include/storage/buf_internals.h