Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7636725

Browse filesBrowse 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 bfc677c commit 7636725
Copy full SHA for 7636725

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
  • src/backend/access/transam
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎src/backend/access/transam/xlog.c

Copy file name to clipboardExpand all lines: src/backend/access/transam/xlog.c
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,8 +1029,10 @@ XLogInsertRecord(XLogRecData *rdata,
10291029

10301030
if (!debug_reader)
10311031
debug_reader = XLogReaderAllocate(wal_segment_size, NULL,
1032-
XL_ROUTINE(), NULL);
1033-
1032+
XL_ROUTINE(.page_read = NULL,
1033+
.segment_open = NULL,
1034+
.segment_close = NULL),
1035+
NULL);
10341036
if (!debug_reader)
10351037
{
10361038
appendStringInfoString(&buf, "error decoding record: out of memory while allocating a WAL reading processor");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.