File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -572,22 +572,21 @@ RelationGetSmgr(Relation rel)
572
572
smgrsetowner (& (rel -> rd_smgr ), smgropen (rel -> rd_locator , rel -> rd_backend ));
573
573
return rel -> rd_smgr ;
574
574
}
575
- #endif
576
575
577
576
/*
578
577
* RelationCloseSmgr
579
578
* Close the relation at the smgr level, if not already done.
580
- *
581
- * Note: smgrclose should unhook from owner pointer, hence the Assert.
582
579
*/
583
- #define RelationCloseSmgr (relation ) \
584
- do { \
585
- if ((relation)->rd_smgr != NULL) \
586
- { \
587
- smgrclose((relation)->rd_smgr); \
588
- Assert((relation)->rd_smgr == NULL); \
589
- } \
590
- } while (0)
580
+ static inline void
581
+ RelationCloseSmgr (Relation relation )
582
+ {
583
+ if (relation -> rd_smgr != NULL )
584
+ smgrclose (relation -> rd_smgr );
585
+
586
+ /* smgrclose should unhook from owner pointer */
587
+ Assert (relation -> rd_smgr == NULL );
588
+ }
589
+ #endif /* !FRONTEND */
591
590
592
591
/*
593
592
* RelationGetTargetBlock
You can’t perform that action at this time.
0 commit comments