Skip to content

Commit 2dfa87b

Browse files
committed
Remove sanity test in XRecOffIsValid.
Commit 061e7ef 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.
1 parent 5c7f954 commit 2dfa87b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/include/access/xlog_internal.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
154154

155155
/* Check if an XLogRecPtr value is in a plausible range */
156156
#define XRecOffIsValid(xlrp) \
157-
((xlrp) % XLOG_BLCKSZ >= SizeOfXLogShortPHD && \
158-
(XLOG_BLCKSZ - (xlrp) % XLOG_BLCKSZ) >= SizeOfXLogRecord)
157+
((xlrp) % XLOG_BLCKSZ >= SizeOfXLogShortPHD)
159158

160159
/*
161160
* The XLog directory and control file (relative to $PGDATA)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy