Remove obsolete XLogRecPtr macros
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 28 Dec 2012 16:06:15 +0000 (13:06 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 28 Dec 2012 16:06:15 +0000 (13:06 -0300)
commit5ab3af46ddd2f2c2b248f1ffdb688b394d4bb387
tree6150244dc25064e933170880cab2037a79682f65
parent24eca7977ed208de33791af8890975ffcf086598
Remove obsolete XLogRecPtr macros

This gets rid of XLByteLT, XLByteLE, XLByteEQ and XLByteAdvance.
These were useful for brevity when XLogRecPtrs were split in
xlogid/xrecoff; but now that they are simple uint64's, they are just
clutter.  The only downside to making this change would be ease of
backporting patches, but that has been negated by other substantive
changes to the involved code anyway.  The clarity of simpler expressions
makes the change worthwhile.

Most of the changes are mechanical, but in a couple of places, the patch
author chose to invert the operator sense, making the code flow more
logical (and more in line with preceding comments).

Author: Andres Freund
Eyeballed by Dimitri Fontaine and Alvaro Herrera
20 files changed:
src/backend/access/gin/ginxlog.c
src/backend/access/gist/gist.c
src/backend/access/gist/gistget.c
src/backend/access/gist/gistvacuum.c
src/backend/access/gist/gistxlog.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtxlog.c
src/backend/access/spgist/spgxlog.c
src/backend/access/transam/clog.c
src/backend/access/transam/slru.c
src/backend/access/transam/timeline.c
src/backend/access/transam/twophase.c
src/backend/access/transam/xlog.c
src/backend/commands/sequence.c
src/backend/replication/syncrep.c
src/backend/replication/walreceiver.c
src/backend/replication/walreceiverfuncs.c
src/backend/replication/walsender.c
src/bin/pg_basebackup/receivelog.c
src/include/access/xlogdefs.h