Enable compile

preventConflictingFlags
Onder Kalaci 2020-04-08 10:13:25 +02:00
parent cb97957717
commit bd12d90597
4 changed files with 8 additions and 2 deletions

View File

@ -380,6 +380,10 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port,
PG_END_TRY();
/*
* Cast volatile MultiConnection pointer to MultiConnection pointer
* for ease of use.
*/
MultiConnection *newConnection = (MultiConnection *) connection;
dlist_push_tail(entry->connections, &newConnection->connectionNode);

View File

@ -23,7 +23,6 @@
#include "commands/dbcommands.h"
#include "distributed/cancel_utils.h"
#include "distributed/connection_management.h"
#include "distributed/hash_helpers.h"
#include "distributed/listutils.h"
#include "distributed/metadata_cache.h"
#include "distributed/shared_connection_stats.h"

View File

@ -1027,6 +1027,9 @@ RemoveNodeFromCluster(char *nodeName, int32 nodePort)
char *nodeDeleteCommand = NodeDeleteCommand(workerNode->nodeId);
/* make sure we don't have any lingering session lifespan connections */
CloseNodeConnectionsAfterTransaction(workerNode->workerName, nodePort);
SendCommandToWorkersWithMetadata(nodeDeleteCommand);
}

View File

@ -963,7 +963,7 @@ RegisterCitusConfigVariables(void)
&MaxSharedPoolSize,
0, -1, INT_MAX,
PGC_SIGHUP, /* TODO: is PGC_POSTMASTER more convinient? */
GUC_STANDARD,
GUC_SUPERUSER_ONLY,
NULL, NULL, MaxSharedPoolSizeGucShowHook);
DefineCustomIntVariable(