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

Commit7250d85

Browse files
committed
Fix building with WAL_DEBUG.
Now that the backup blocks are appended to the WAL record in xloginsert.c,XLogInsert doesn't see them anymore and cannot remove them from the versionreconstructed for xlog_outdesc. This makes running with wal_debug=on moreexpensive, as we now make (unnecessary) temporary copies of the backupblocks, but it doesn't seem worth convoluting the code to keep thatoptimization.Reported by Alvaro Herrera.
1 parent5ea86e6 commit7250d85

File tree

1 file changed

+1
-4
lines changed
  • src/backend/access/transam

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,11 +1067,8 @@ XLogInsertRecord(XLogRecData *rdata, XLogRecPtr fpw_lsn)
10671067
/*
10681068
* We have to piece together the WAL record data from the
10691069
* XLogRecData entries, so that we can pass it to the rm_desc
1070-
* function as one contiguous chunk. (but we can leave out any
1071-
* extra entries we created for backup blocks)
1070+
* function as one contiguous chunk.
10721071
*/
1073-
rdt_lastnormal->next=NULL;
1074-
10751072
initStringInfo(&recordbuf);
10761073
appendBinaryStringInfo(&recordbuf, (char*)rechdr,sizeof(XLogRecord));
10771074
for (;rdata!=NULL;rdata=rdata->next)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp