Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2dfa87b

Browse files
committed
Remove sanity test in XRecOffIsValid.
Commit061e7ef changed the rulesfor splitting xlog records across pages, but neglected to update thistest. It's possible that there's some better action here than justremoving the test completely, but this at least appears to get someof the things that are currently broken (like initdb on MacOS X)working again.
1 parent5c7f954 commit2dfa87b

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
#defineXRecOffIsValid(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)

[8]ページ先頭

©2009-2025 Movatter.jp