-
- Downloads
I posted some bufmgr cleanup a few weeks ago, but it conflicted with
some concurrent changes Jan was making to the bufmgr. Here's an updated version of the patch -- it should apply cleanly to CVS HEAD and passes the regression tests. This patch makes the following changes: - remove the UnlockAndReleaseBuffer() and UnlockAndWriteBuffer() macros, and replace uses of them with calls to the appropriate functions. - remove a bunch of #ifdef BMTRACE code: it is ugly & broken (i.e. it doesn't compile) - make BufferReplace() return a bool, not an int - cleanup some logic in bufmgr.c; should be functionality equivalent to the previous code, just cleaner now - remove the BM_PRIVATE flag as it is unused - improve a few comments, etc.
Showing
- src/backend/access/heap/heapam.c 23 additions, 12 deletionssrc/backend/access/heap/heapam.c
- src/backend/access/nbtree/nbtxlog.c 53 additions, 21 deletionssrc/backend/access/nbtree/nbtxlog.c
- src/backend/access/transam/xlog.c 3 additions, 2 deletionssrc/backend/access/transam/xlog.c
- src/backend/access/transam/xlogutils.c 19 additions, 10 deletionssrc/backend/access/transam/xlogutils.c
- src/backend/commands/sequence.c 3 additions, 2 deletionssrc/backend/commands/sequence.c
- src/backend/storage/buffer/buf_init.c 1 addition, 26 deletionssrc/backend/storage/buffer/buf_init.c
- src/backend/storage/buffer/buf_table.c 1 addition, 13 deletionssrc/backend/storage/buffer/buf_table.c
- src/backend/storage/buffer/bufmgr.c 21 additions, 187 deletionssrc/backend/storage/buffer/bufmgr.c
- src/include/storage/buf_internals.h 8 additions, 35 deletionssrc/include/storage/buf_internals.h
- src/include/storage/bufmgr.h 1 addition, 14 deletionssrc/include/storage/bufmgr.h
Loading
Please register or sign in to comment