1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Fix compilation on Windows with WAL_DEBUG

This has been broken since b060dbe000 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
This commit is contained in:
Michael Paquier
2023-12-06 14:11:47 +09:00
parent 1ce2986795
commit 7d5a740331

View File

@ -1235,8 +1235,10 @@ XLogInsertRecord(XLogRecData *rdata,
if (!debug_reader) if (!debug_reader)
debug_reader = XLogReaderAllocate(wal_segment_size, NULL, debug_reader = XLogReaderAllocate(wal_segment_size, NULL,
XL_ROUTINE(), NULL); XL_ROUTINE(.page_read = NULL,
.segment_open = NULL,
.segment_close = NULL),
NULL);
if (!debug_reader) if (!debug_reader)
{ {
appendStringInfoString(&buf, "error decoding record: out of memory"); appendStringInfoString(&buf, "error decoding record: out of memory");