diff options
Diffstat (limited to 'src/backend/access/transam')
| -rw-r--r-- | src/backend/access/transam/xlogutils.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index 1811c91d581..8f0bbc21dbb 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -413,6 +413,9 @@ CreateFakeRelcacheEntry(RelFileNode rnode)  void  FreeFakeRelcacheEntry(Relation fakerel)  { +	/* make sure the fakerel is not referenced by the SmgrRelation anymore */ +	if (fakerel->rd_smgr != NULL) +		smgrclearowner(&fakerel->rd_smgr, fakerel->rd_smgr);  	pfree(fakerel);  } | 
