aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-12-06 14:11:46 +0900
committerMichael Paquier <michael@paquier.xyz>2023-12-06 14:11:46 +0900
commitc49b6cab1e666dd4f2e3bd38c4d2dbba9a560df6 (patch)
tree18b2f2c1a5e836538c620a7e3c4a223a48d4ba53 /src/backend/access/transam/xlog.c
parent376eaa45a2b8a2aed45b26e5fc889d2cb70ec6a7 (diff)
downloadpostgresql-c49b6cab1e666dd4f2e3bd38c4d2dbba9a560df6.tar.gz
postgresql-c49b6cab1e666dd4f2e3bd38c4d2dbba9a560df6.zip
Fix compilation on Windows with WAL_DEBUG
This has been broken since b060dbe0001a 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
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 1f139fa7431..60e3ae6e506 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -1246,8 +1246,10 @@ XLogInsertRecord(XLogRecData *rdata,
if (!debug_reader)
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)
{
appendStringInfoString(&buf, "error decoding record: out of memory");