Skip to content

Commit 6248a2b

Browse files
committed
Fix compilation on Windows with WAL_DEBUG
This has been broken since b060dbe that has reworked the callback mechanism of XLogReader, most likely unnoticed because any form of development involving WAL happens on platforms where this compiles fine. Author: Bharath Rupireddy Discussion: https://postgr.es/m/CALj2ACVF14WKQMFwcJ=3okVDhiXpuK5f7YdT+BdYXbbypMHqWA@mail.gmail.com Backpatch-through: 13
1 parent a499c08 commit 6248a2b

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,8 +977,10 @@ XLogInsertRecord(XLogRecData *rdata,
977977

978978
if (!debug_reader)
979979
debug_reader = XLogReaderAllocate(wal_segment_size, NULL,
980-
XL_ROUTINE(), NULL);
981-
980+
XL_ROUTINE(.page_read = NULL,
981+
.segment_open = NULL,
982+
.segment_close = NULL),
983+
NULL);
982984
if (!debug_reader)
983985
{
984986
appendStringInfoString(&buf, "error decoding record: out of memory while allocating a WAL reading processor");

0 commit comments

Comments
 (0)