File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: rel.h,v 1.34 2000/01/31 04:35:57 tgl Exp $
10
+ * $Id: rel.h,v 1.35 2000/02/27 07:31:00 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -149,7 +149,9 @@ typedef Relation *RelationPtr;
149
149
* RelationDecrementReferenceCount
150
150
* Decrements relation reference count.
151
151
*/
152
- #define RelationDecrementReferenceCount (relation ) ((relation)->rd_refcnt -= 1)
152
+ #define RelationDecrementReferenceCount (relation ) \
153
+ (AssertMacro((relation)->rd_refcnt > 0), \
154
+ (relation)->rd_refcnt -= 1)
153
155
154
156
/*
155
157
* RelationGetForm
You can’t perform that action at this time.
0 commit comments