@@ -492,13 +492,13 @@ void PaxAuxRelationSetNewFilenode(Oid aux_relid) {
492492 ReindexParams reindex_params = {0 };
493493
494494 aux_rel = relation_open (aux_relid, AccessExclusiveLock);
495- RelationSetNewRelfilenode (aux_rel, aux_rel->rd_rel ->relpersistence );
495+ RelationSetNewRelfilenumber (aux_rel, aux_rel->rd_rel ->relpersistence );
496496 toastrelid = aux_rel->rd_rel ->reltoastrelid ;
497497
498498 if (OidIsValid (toastrelid)) {
499499 Relation toast_rel;
500500 toast_rel = relation_open (toastrelid, AccessExclusiveLock);
501- RelationSetNewRelfilenode (toast_rel, toast_rel->rd_rel ->relpersistence );
501+ RelationSetNewRelfilenumber (toast_rel, toast_rel->rd_rel ->relpersistence );
502502 relation_close (toast_rel, NoLock);
503503 }
504504
@@ -630,7 +630,7 @@ static void FetchMicroPartitionAuxRowCallback(Datum *values, bool *isnull,
630630 auto ctx = reinterpret_cast <struct FetchMicroPartitionAuxRowContext *>(arg);
631631 auto rel = ctx->rel ;
632632 auto rel_path = cbdb::BuildPaxDirectoryPath (
633- rel->rd_node , rel->rd_backend );
633+ rel->rd_locator , rel->rd_backend );
634634
635635 Assert (!isnull[ANUM_PG_PAX_BLOCK_TABLES_PTBLOCKNAME]);
636636 {
@@ -738,24 +738,24 @@ void CCPaxAuxTable::PaxAuxRelationNontransactionalTruncate(Relation rel) {
738738 // Delete all micro partition file on non-transactional truncate but reserve
739739 // top level PAX file directory.
740740 PaxAuxRelationFileUnlink (
741- rel->rd_node , rel->rd_backend , false ,
741+ rel->rd_locator , rel->rd_backend , false ,
742742 rel->rd_rel ->relpersistence == RELPERSISTENCE_PERMANENT);
743743}
744744
745745void CCPaxAuxTable::PaxAuxRelationCopyData (Relation rel,
746- const RelFileNode *newrnode,
746+ const RelFileLocator *newrnode,
747747 bool createnewpath) {
748748 PaxCopyAllDataFiles (rel, newrnode, createnewpath);
749749}
750750
751751void CCPaxAuxTable::PaxAuxRelationCopyDataForCluster (Relation old_rel,
752752 Relation new_rel) {
753- PaxAuxRelationCopyData (old_rel, &new_rel->rd_node , false );
753+ PaxAuxRelationCopyData (old_rel, &new_rel->rd_locator , false );
754754 cbdb::PaxCopyPaxBlockEntry (old_rel, new_rel);
755755 // TODO(Tony) : here need to implement PAX re-organize semantics logic.
756756}
757757
758- void CCPaxAuxTable::PaxAuxRelationFileUnlink (RelFileNode node,
758+ void CCPaxAuxTable::PaxAuxRelationFileUnlink (RelFileLocator node,
759759 BackendId backend,
760760 bool delete_topleveldir,
761761 bool need_wal) {
0 commit comments