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

Commita0c9685

Browse files
committed
Fix assertion failure when running pgbench -s.
If there is the WAL page that the continuation WAL record just fits within(i.e., the continuation record ends just at the end of the page) andthe LSN in such page is specified with -s option, previously pg_waldumpcaused an assertion failure. The cause of this assertion failure was thatXLogFindNextRecord() that pg_waldump -s calls mistakenly handledsuch special WAL page.This commit changes XLogFindNextRecord() so that it can handlesuch WAL page correctly.Back-patch to all supported versions.Author: Andrey LepikhovReviewed-by: Fujii Masao, Michael PaquierDiscussion:https://postgr.es/m/99303554-5dd5-06e6-f943-b3005ccd6edd@postgrespro.ru
1 parent7815e7e commita0c9685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xlogreader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
966966
*
967967
* Note that record headers are MAXALIGN'ed
968968
*/
969-
if (MAXALIGN(header->xlp_rem_len)> (XLOG_BLCKSZ-pageHeaderSize))
969+
if (MAXALIGN(header->xlp_rem_len) >= (XLOG_BLCKSZ-pageHeaderSize))
970970
tmpRecPtr=targetPagePtr+XLOG_BLCKSZ;
971971
else
972972
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp