This is an automated email from the ASF dual-hosted git repository.
reshke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/main by this push:
new ca01a13a576 Fix extnesible SMGR API violation in ao_truncate replay
(#1925)
ca01a13a576 is described below
commit ca01a13a5765128971a8682a15cabfcb27530bd3
Author: reshke <[email protected]>
AuthorDate: Tue Aug 25 19:17:29 2026 +0500
Fix extnesible SMGR API violation in ao_truncate replay (#1925)
---
src/backend/cdb/cdbappendonlyxlog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/cdb/cdbappendonlyxlog.c
b/src/backend/cdb/cdbappendonlyxlog.c
index bb19dcb436f..3e2e6d68901 100644
--- a/src/backend/cdb/cdbappendonlyxlog.c
+++ b/src/backend/cdb/cdbappendonlyxlog.c
@@ -177,7 +177,7 @@ ao_truncate_replay(XLogReaderState *record)
return;
}
- if (FileTruncate(file, xlrec->target.offset,
WAIT_EVENT_DATA_FILE_TRUNCATE) != 0)
+ if (smgr->smgr_ao->smgr_FileTruncate(file, xlrec->target.offset,
WAIT_EVENT_DATA_FILE_TRUNCATE) != 0)
{
ereport(WARNING,
(errcode_for_file_access(),
@@ -185,7 +185,7 @@ ao_truncate_replay(XLogReaderState *record)
path, xlrec->target.offset)));
}
- FileClose(file);
+ smgr->smgr_ao->smgr_FileClose(file);
/*
* Cancel any pending fsync requests for this AO segment file.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]