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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]