You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by ch...@apache.org on 2026/03/15 02:19:37 UTC

(cloudberry) branch cbdb-postgres-merge updated: Use smgr_which in RelationCreateStorage

This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this push:
     new 66efcd5fd3f Use smgr_which in RelationCreateStorage
66efcd5fd3f is described below

commit 66efcd5fd3f8dd8fb32efb09bad4880269114f38
Author: Jinbao Chen <ch...@gmail.com>
AuthorDate: Sat Mar 14 22:19:04 2026 -0400

    Use smgr_which in RelationCreateStorage
---
 src/backend/catalog/storage.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c
index 1c23dac5a78..66cf79162b5 100644
--- a/src/backend/catalog/storage.c
+++ b/src/backend/catalog/storage.c
@@ -170,11 +170,11 @@ RelationCreateStorage(RelFileLocator rlocator, char relpersistence, bool registe
 			return NULL;		/* placate compiler */
 	}
 
-	srel = smgropen(rlocator, backend, SMGR_MD, rel);
+	srel = smgropen(rlocator, backend, smgr_which, rel);
 	smgrcreate(srel, MAIN_FORKNUM, false);
 
 	if (needs_wal)
-		log_smgrcreate(&srel->smgr_rlocator.locator, MAIN_FORKNUM, SMGR_MD);
+		log_smgrcreate(&srel->smgr_rlocator.locator, MAIN_FORKNUM, smgr_which);
 
 	/*
 	 * Add the relation to the list of stuff to delete at abort, if we are


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org