diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-12-06 14:11:44 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-12-06 14:11:44 +0900 |
commit | 87ed81a8739b2419ceb4818c469ce1c5d1ae98d2 (patch) | |
tree | ec4e56c0d25a94000587cb1d93c2892b6b48d1e8 /src/backend | |
parent | f0b53daa2c761e5349a91ebe1162c1ce87a8b33f (diff) | |
download | postgresql-87ed81a8739b2419ceb4818c469ce1c5d1ae98d2.tar.gz postgresql-87ed81a8739b2419ceb4818c469ce1c5d1ae98d2.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')
-rw-r--r-- | src/backend/access/transam/xlog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 59f94b05d4a..9795ce71622 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -974,8 +974,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 while allocating a WAL reading processor"); |