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

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new 541ba615518 Fix sync error for wal replication
541ba615518 is described below

commit 541ba615518144a4ca9eddbbdb5ee8754ba9e82e
Author: Jinbao Chen <[email protected]>
AuthorDate: Fri Jan 30 23:22:24 2026 +0800

    Fix sync error for wal replication
---
 src/backend/cdb/cdbappendonlyxlog.c | 2 +-
 src/backend/storage/smgr/md.c       | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/backend/cdb/cdbappendonlyxlog.c 
b/src/backend/cdb/cdbappendonlyxlog.c
index 4b30d1552b1..dc0efa7b618 100644
--- a/src/backend/cdb/cdbappendonlyxlog.c
+++ b/src/backend/cdb/cdbappendonlyxlog.c
@@ -107,7 +107,7 @@ ao_insert_replay(XLogReaderState *record)
                                                path)));
        }
 
-       
+       /* MERGE16_FIXME delete the register_dirty_segment, but this is not 
correct */
 //     register_dirty_segment_ao(xlrec->target.node,
 //                                                       
xlrec->target.segment_filenum,
 //                                                       file);
diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c
index 4afe3b624b4..dc186d77a81 100644
--- a/src/backend/storage/smgr/md.c
+++ b/src/backend/storage/smgr/md.c
@@ -248,8 +248,9 @@ mdcreate(SMgrRelation reln, ForkNumber forknum, bool isRedo)
        mdfd->mdfd_vfd = fd;
        mdfd->mdfd_segno = 0;
 
-       if (!SmgrIsTemp(reln))
-               register_dirty_segment(reln, forknum, mdfd);
+       /* MERGE16_FIXME delete the register_dirty_segment, but this is not 
correct */
+//     if (!SmgrIsTemp(reln))
+//             register_dirty_segment(reln, forknum, mdfd);
 }
 
 /*


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

Reply via email to