summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2016-11-09 14:12:52 +0000
committerTomas Vondra2016-11-09 14:12:52 +0000
commit805725c5200b25d4bc79773eda8fd0ef21ebd151 (patch)
tree92237fff0044b5a9d2cbcbf665d1c2a349aa3449
parent917888b44b5d22920f1462ee4c7c9c006b2287fb (diff)
fix declarations in mctx.c
- MemoryContextCallResetCallbacks was missing - two (conflicting) MemoryContextStatsInternal declarations
-rw-r--r--src/backend/utils/mmgr/mcxt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/utils/mmgr/mcxt.c b/src/backend/utils/mmgr/mcxt.c
index 6b62f37c23..6b3f3dc7d9 100644
--- a/src/backend/utils/mmgr/mcxt.c
+++ b/src/backend/utils/mmgr/mcxt.c
@@ -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