fix declarations in mctx.c
authorTomas Vondra <[email protected]>
Wed, 9 Nov 2016 14:12:52 +0000 (15:12 +0100)
committerTomas Vondra <[email protected]>
Wed, 9 Nov 2016 14:12:52 +0000 (15:12 +0100)
- MemoryContextCallResetCallbacks was missing
- two (conflicting) MemoryContextStatsInternal declarations

src/backend/utils/mmgr/mcxt.c

index 6b62f37c23e0fa4f16e4a332b472ff3c4206b918..6b3f3dc7d9147ccf9ae659658a2cef86c92eefd3 100644 (file)
@@ -51,14 +51,15 @@ MemoryContext CurTransactionContext = NULL;
 /* This is a transient link to the active portal's memory context: */
 MemoryContext PortalContext = NULL;
 
-static void MemoryContextStatsInternal(MemoryContext context, int level);
-#ifdef PGXC
-void *allocTopCxt(size_t s);
-#endif
+static void MemoryContextCallResetCallbacks(MemoryContext context);
 static void MemoryContextStatsInternal(MemoryContext context, int level,
                                                   bool print, int max_children,
                                                   MemoryContextCounters *totals);
 
+#ifdef PGXC
+void *allocTopCxt(size_t s);
+#endif
+
 /*
  * You should not do memory allocations within a critical section, because
  * an out-of-memory error will be escalated to a PANIC. To enforce that