202
194
smgrsetowner(SMgrRelation *owner, SMgrRelation reln)
205
200
* First, unhook any old owner. (Normally there shouldn't be any, but it
206
201
* seems possible that this can happen during swap_relation_files()
207
202
* depending on the order of processing. It's ok to close the old
208
203
* relcache entry early in that case.)
211
209
*(reln->smgr_owner) = NULL;
213
213
/* Now establish the ownership relationship. */
214
214
reln->smgr_owner = owner;