-
- Downloads
Another round of code cleanup on bufmgr. Use BM_VALID flag to keep track
of whether we have successfully read data into a buffer; this makes the error behavior a bit more transparent (IMHO anyway), and also makes it work correctly for local buffers which don't use Start/TerminateBufferIO. Collapse three separate functions for writing a shared buffer into one. This overlaps a bit with cleanups that Neil proposed awhile back, but seems not to have committed yet.
Showing
- src/backend/storage/buffer/buf_init.c 3 additions, 3 deletionssrc/backend/storage/buffer/buf_init.c
- src/backend/storage/buffer/bufmgr.c 273 additions, 385 deletionssrc/backend/storage/buffer/bufmgr.c
- src/backend/storage/buffer/freelist.c 11 additions, 9 deletionssrc/backend/storage/buffer/freelist.c
- src/backend/storage/buffer/localbuf.c 23 additions, 11 deletionssrc/backend/storage/buffer/localbuf.c
- src/include/storage/buf_internals.h 14 additions, 16 deletionssrc/include/storage/buf_internals.h
- src/include/storage/bufmgr.h 2 additions, 2 deletionssrc/include/storage/bufmgr.h
Loading
Please register or sign in to comment