diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-08-13 15:39:08 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-09-02 15:10:28 +0300 |
commit | f8f4227976a2cdb8ac7c611e49da03aa9e65e0d2 (patch) | |
tree | 92a7aa95ce72fbac48325761761821f8d7a742ed /src/backend/access/gist/gistutil.c | |
parent | 26f8b99b248aae989e63ca0969a746f30b0c8c21 (diff) | |
download | postgresql-f8f4227976a2cdb8ac7c611e49da03aa9e65e0d2.tar.gz postgresql-f8f4227976a2cdb8ac7c611e49da03aa9e65e0d2.zip |
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.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions