Clean up and document the API for XLogOpenRelation and XLogReadBuffer.
authorTom Lane <[email protected]>
Wed, 29 Mar 2006 21:17:39 +0000 (21:17 +0000)
committerTom Lane <[email protected]>
Wed, 29 Mar 2006 21:17:39 +0000 (21:17 +0000)
commit6d61cdec0761dc1f86a196899825b52b1186d00e
tree654a0eceb4b0b324ca05c292cb1877d6a45501ee
parent2154e1c11e4fbb6b41f6db1ea7c49e25f98d0df7
Clean up and document the API for XLogOpenRelation and XLogReadBuffer.
This commit doesn't make much functional change, but it does eliminate some
duplicated code --- for instance, PageIsNew tests are now done inside
XLogReadBuffer rather than by each caller.
The GIST xlog code still needs a lot of love, but I'll worry about that
separately.
14 files changed:
src/backend/access/gist/gistxlog.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtxlog.c
src/backend/access/transam/README
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/commands/dbcommands.c
src/backend/commands/sequence.c
src/backend/commands/tablespace.c
src/backend/storage/buffer/bufmgr.c
src/backend/utils/init/postinit.c
src/include/access/xlogutils.h
src/include/storage/bufmgr.h