git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 26f8b99) | patch
Refactor per-page logic common to all redo routines to a new function.
2014年8月13日 12:39:08 +0000 (15:39 +0300)
Tue, 2 Sep 2014 12:10:28 +0000 (15:10 +0300)
commit f8f4227976a2cdb8ac7c611e49da03aa9e65e0d2
Refactor per-page logic common to all redo routines to a new function.

Every redo routine uses the same idiom to determine what to do to a page:
check if there's a backup block for it, and if not read, the buffer if the
block exists, and check its LSN. Refactor that into a common function,
XLogReadBufferForRedo, making all the redo routines shorter and more
readable.

This has no user-visible effect, and makes no changes to the WAL format.

Reviewed by Andres Freund, Alvaro Herrera, Michael Paquier.
src/backend/access/gin/ginxlog.c diff | blob | blame | history
src/backend/access/gist/gistxlog.c diff | blob | blame | history
src/backend/access/heap/heapam.c diff | blob | blame | history
src/backend/access/nbtree/nbtxlog.c diff | blob | blame | history
src/backend/access/spgist/spgxlog.c diff | blob | blame | history
src/backend/access/transam/README diff | blob | blame | history
src/backend/access/transam/xlogutils.c diff | blob | blame | history
src/include/access/xlogutils.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /