]> granicus.if.org Git - postgresql/commit
Another round of code cleanup on bufmgr. Use BM_VALID flag to keep track
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Apr 2004 18:06:30 +0000 (18:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Apr 2004 18:06:30 +0000 (18:06 +0000)
commit95a03e9cdf7e0e33c2655dd20d2b64db191f3a21
tree44819c567d27fd6ede1abbf42df4899a88de400c
parentaeee856564837a7d53da6c02f871c5b9f6631ebf
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.
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/freelist.c
src/backend/storage/buffer/localbuf.c
src/include/storage/buf_internals.h
src/include/storage/bufmgr.h