Fix compiler warnings in stormstats, some of which may also cause failures on
authorPavan Deolasee <[email protected]>
Wed, 27 Jan 2016 02:41:07 +0000 (08:11 +0530)
committerPavan Deolasee <[email protected]>
Wed, 27 Jan 2016 02:41:07 +0000 (08:11 +0530)
other platforms.

contrib/stormstats/stormstats.c

index 3a32d7ede8a7fe8d7be5d082f891521459684cd6..3387bb9cccce6eed499fab5e9ea1c52ff08deb33 100644 (file)
@@ -19,6 +19,7 @@
 #include "nodes/makefuncs.h"
 #include "funcapi.h"
 #include "stormstats.h"
+#include "storage/fd.h"
 
 #include "pgxc/pgxc.h"
 #include "pgxc/pgxcnode.h"
@@ -110,8 +111,8 @@ static int max_tracked_dbs;
 static void
 ProcessUtility_callback(Node *parsetree,
                                                const char *queryString,
+                                               ProcessUtilityContext context,
                                                ParamListInfo params,
-                                               bool isTopLevel,
                                                DestReceiver *dest,
 #ifdef PGXC
                                                bool sentToRemote,
@@ -120,7 +121,7 @@ ProcessUtility_callback(Node *parsetree,
 {
        elog( DEBUG1, "STORMSTATS: using plugin." );
 
-       standard_ProcessUtility(parsetree, queryString, params, isTopLevel, dest,
+       standard_ProcessUtility(parsetree, queryString, context, params, dest,
 #ifdef PGXC
                                                        sentToRemote,
 #endif /* PGXC */