Commit 2dfa87bc authored by Robert Haas's avatar Robert Haas

Remove sanity test in XRecOffIsValid.

Commit 061e7efb changed the rules
for splitting xlog records across pages, but neglected to update this
test.  It's possible that there's some better action here than just
removing the test completely, but this at least appears to get some
of the things that are currently broken (like initdb on MacOS X)
working again.
parent 5c7f954d
...@@ -154,8 +154,7 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader; ...@@ -154,8 +154,7 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
/* Check if an XLogRecPtr value is in a plausible range */ /* Check if an XLogRecPtr value is in a plausible range */
#define XRecOffIsValid(xlrp) \ #define XRecOffIsValid(xlrp) \
((xlrp) % XLOG_BLCKSZ >= SizeOfXLogShortPHD && \ ((xlrp) % XLOG_BLCKSZ >= SizeOfXLogShortPHD)
(XLOG_BLCKSZ - (xlrp) % XLOG_BLCKSZ) >= SizeOfXLogRecord)
/* /*
* The XLog directory and control file (relative to $PGDATA) * The XLog directory and control file (relative to $PGDATA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment