This is an automated email from the ASF dual-hosted git repository.
reshke pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/REL_2_STABLE by this push:
new c6ab5f9f554 Fix extnesible SMGR API violation in ao_truncate replay
(#1924)
c6ab5f9f554 is described below
commit c6ab5f9f554e1d88319b2404764b6622b636a85b
Author: reshke <[email protected]>
AuthorDate: Tue Sep 8 16:47:36 2026 +0500
Fix extnesible SMGR API violation in ao_truncate replay (#1924)
---
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 6b717978b31..8f2aaa89c0f 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);
}
void
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]