mirror of https://github.com/citusdata/citus.git
Enable compile
parent
cb97957717
commit
bd12d90597
|
@ -380,6 +380,10 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port,
|
||||||
PG_END_TRY();
|
PG_END_TRY();
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Cast volatile MultiConnection pointer to MultiConnection pointer
|
||||||
|
* for ease of use.
|
||||||
|
*/
|
||||||
MultiConnection *newConnection = (MultiConnection *) connection;
|
MultiConnection *newConnection = (MultiConnection *) connection;
|
||||||
|
|
||||||
dlist_push_tail(entry->connections, &newConnection->connectionNode);
|
dlist_push_tail(entry->connections, &newConnection->connectionNode);
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include "commands/dbcommands.h"
|
#include "commands/dbcommands.h"
|
||||||
#include "distributed/cancel_utils.h"
|
#include "distributed/cancel_utils.h"
|
||||||
#include "distributed/connection_management.h"
|
#include "distributed/connection_management.h"
|
||||||
#include "distributed/hash_helpers.h"
|
|
||||||
#include "distributed/listutils.h"
|
#include "distributed/listutils.h"
|
||||||
#include "distributed/metadata_cache.h"
|
#include "distributed/metadata_cache.h"
|
||||||
#include "distributed/shared_connection_stats.h"
|
#include "distributed/shared_connection_stats.h"
|
||||||
|
|
|
@ -1027,6 +1027,9 @@ RemoveNodeFromCluster(char *nodeName, int32 nodePort)
|
||||||
|
|
||||||
char *nodeDeleteCommand = NodeDeleteCommand(workerNode->nodeId);
|
char *nodeDeleteCommand = NodeDeleteCommand(workerNode->nodeId);
|
||||||
|
|
||||||
|
/* make sure we don't have any lingering session lifespan connections */
|
||||||
|
CloseNodeConnectionsAfterTransaction(workerNode->workerName, nodePort);
|
||||||
|
|
||||||
SendCommandToWorkersWithMetadata(nodeDeleteCommand);
|
SendCommandToWorkersWithMetadata(nodeDeleteCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -963,7 +963,7 @@ RegisterCitusConfigVariables(void)
|
||||||
&MaxSharedPoolSize,
|
&MaxSharedPoolSize,
|
||||||
0, -1, INT_MAX,
|
0, -1, INT_MAX,
|
||||||
PGC_SIGHUP, /* TODO: is PGC_POSTMASTER more convinient? */
|
PGC_SIGHUP, /* TODO: is PGC_POSTMASTER more convinient? */
|
||||||
GUC_STANDARD,
|
GUC_SUPERUSER_ONLY,
|
||||||
NULL, NULL, MaxSharedPoolSizeGucShowHook);
|
NULL, NULL, MaxSharedPoolSizeGucShowHook);
|
||||||
|
|
||||||
DefineCustomIntVariable(
|
DefineCustomIntVariable(
|
||||||
|
|
Loading…
Reference in New Issue