Skip to content

Commit 66efcd5

Browse files
committed
Use smgr_which in RelationCreateStorage
1 parent ec26821 commit 66efcd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/catalog/storage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ RelationCreateStorage(RelFileLocator rlocator, char relpersistence, bool registe
170170
return NULL; /* placate compiler */
171171
}
172172

173-
srel = smgropen(rlocator, backend, SMGR_MD, rel);
173+
srel = smgropen(rlocator, backend, smgr_which, rel);
174174
smgrcreate(srel, MAIN_FORKNUM, false);
175175

176176
if (needs_wal)
177-
log_smgrcreate(&srel->smgr_rlocator.locator, MAIN_FORKNUM, SMGR_MD);
177+
log_smgrcreate(&srel->smgr_rlocator.locator, MAIN_FORKNUM, smgr_which);
178178

179179
/*
180180
* Add the relation to the list of stuff to delete at abort, if we are

0 commit comments

Comments
 (0)