diff options
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 5ef8f2f0caa..ac106b40e30 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -3044,7 +3044,7 @@ RelationCacheInvalidate(bool debug_discard) * start to rebuild entries, since that may involve catalog fetches which * will re-open catalog files. */ - smgrcloseall(); + smgrdestroyall(); /* Phase 2: rebuild the items found to need rebuild in phase 1 */ foreach(l, rebuildFirstList) @@ -3066,25 +3066,6 @@ RelationCacheInvalidate(bool debug_discard) in_progress_list[i].invalidated = true; } -/* - * RelationCloseSmgrByOid - close a relcache entry's smgr link - * - * Needed in some cases where we are changing a relation's physical mapping. - * The link will be automatically reopened on next use. - */ -void -RelationCloseSmgrByOid(Oid relationId) -{ - Relation relation; - - RelationIdCacheLookup(relationId, relation); - - if (!PointerIsValid(relation)) - return; /* not in cache, nothing to do */ - - RelationCloseSmgr(relation); -} - static void RememberToFreeTupleDescAtEOX(TupleDesc td) { |