From: Tomas Vondra Date: Wed, 9 Nov 2016 14:12:52 +0000 (+0100) Subject: fix declarations in mctx.c X-Git-Tag: XL_10_R1BETA1~513 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=805725c5200b25d4bc79773eda8fd0ef21ebd151;p=postgres-xl.git fix declarations in mctx.c - MemoryContextCallResetCallbacks was missing - two (conflicting) MemoryContextStatsInternal declarations --- 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