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
The following commit(s) were added to refs/heads/fix_heap_checksum by this push:
new 1f7653a021d Fix checksum
1f7653a021d is described below
commit 1f7653a021d3da05f0c491a9c1829d6aa8a37951
Author: Kirill Reshke <[email protected]>
AuthorDate: Sat Aug 1 00:01:18 2026 +0500
Fix checksum
---
src/test/heap_checksum/heap_checksum_helper.c | 11 +++++------
1 file changed, 5 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..a7ec5b778db 100644
--- a/src/test/heap_checksum/heap_checksum_helper.c
+++ b/src/test/heap_checksum/heap_checksum_helper.c
@@ -6,7 +6,6 @@
* src/test/heap_checksum/heap_checksum_helper.c
*--------------------------------------------------------------------------
*/
-#include "c.h"
#include "postgres.h"
#include "funcapi.h"
#include "nodes/pg_list.h"
@@ -25,17 +24,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]