This is an automated email from the ASF dual-hosted git repository. reshke pushed a commit to branch fix_heap_checksum in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 356e95f82fea51a4934f66082b756fc87c317328 Author: Kirill Reshke <[email protected]> AuthorDate: Sat Aug 1 00:01:18 2026 +0500 Fix heap_checksum compile-time issue --- src/test/heap_checksum/heap_checksum_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/heap_checksum/heap_checksum_helper.c b/src/test/heap_checksum/heap_checksum_helper.c index d5ac4fa5cf0..702a8f4de2e 100644 --- a/src/test/heap_checksum/heap_checksum_helper.c +++ b/src/test/heap_checksum/heap_checksum_helper.c @@ -6,13 +6,13 @@ * src/test/heap_checksum/heap_checksum_helper.c *-------------------------------------------------------------------------- */ -#include "c.h" #include "postgres.h" #include "funcapi.h" #include "nodes/pg_list.h" #include "storage/buf_internals.h" #include "storage/bufmgr.h" #include "access/xlog.h" +#include "access/xlogutils.h" #ifdef PG_MODULE_MAGIC PG_MODULE_MAGIC; @@ -25,17 +25,17 @@ Datum invalidate_buffers(PG_FUNCTION_ARGS) { SMgrRelation reln = (SMgrRelation) palloc(sizeof(SMgrRelationData)); - RelFileNodeBackend rnodebackend; + RelFileLocatorBackend rnodebackend; ForkNumber forknum = MAIN_FORKNUM; BlockNumber firstDelBlock = 0; - rnodebackend.node.spcNode = PG_GETARG_OID(0); - rnodebackend.node.dbNode = PG_GETARG_OID(1); - rnodebackend.node.relNode = PG_GETARG_OID(2); + rnodebackend.locator.spcOid = PG_GETARG_OID(0); + rnodebackend.locator.dbOid = PG_GETARG_OID(1); + rnodebackend.locator.relNumber = PG_GETARG_OID(2); rnodebackend.backend = InvalidBackendId; /* not temporary/local */ Assert(!InRecovery); /* can't be used in recovery mode */ - reln->smgr_rnode = rnodebackend; + reln->smgr_rlocator = rnodebackend; DropRelFileNodeBuffers(reln, &forknum, 1, &firstDelBlock); pfree(reln); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
