Remove BufferLocks[] array in favor of a single pointer to the buffer
Tom Lane <tgl@sss.pgh.pa.us>
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().
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/buf_init.c | modified | +2 −5 |
| src/backend/storage/buffer/bufmgr.c | modified | +31 −37 |
| src/include/storage/buf_internals.h | modified | +2 −14 |