Skip to content

Commit 7250d85

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 version reconstructed for xlog_outdesc. This makes running with wal_debug=on more expensive, as we now make (unnecessary) temporary copies of the backup blocks, but it doesn't seem worth convoluting the code to keep that optimization. Reported by Alvaro Herrera.
1 parent 5ea86e6 commit 7250d85

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)
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