This is an automated email from the ASF dual-hosted git repository.

leborchuk pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 36af2ba9c0a1f1171a6854297b47aae903cd7634
Author: Michael Paquier <[email protected]>
AuthorDate: Wed Dec 6 14:11:46 2023 +0900

    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+bdyxbbypmh...@mail.gmail.com
    Backpatch-through: 13
    (cherry picked from commit c49b6cab1e666dd4f2e3bd38c4d2dbba9a560df6)
---
 src/backend/access/transam/xlog.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/access/transam/xlog.c 
b/src/backend/access/transam/xlog.c
index 69cbb5ee1c4..05dbcf0da37 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -1295,8 +1295,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");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to