mirror of https://github.com/citusdata/citus.git
make WorkerGetNodeWithName a static function
parent
fd3c007beb
commit
ee270b65d7
|
@ -40,6 +40,7 @@ int MaxWorkerNodesTracked = 2048; /* determines worker node hash table size *
|
||||||
|
|
||||||
|
|
||||||
/* Local functions forward declarations */
|
/* Local functions forward declarations */
|
||||||
|
static WorkerNode * WorkerGetNodeWithName(const char *hostname);
|
||||||
static char * ClientHostAddress(StringInfo remoteHostStringInfo);
|
static char * ClientHostAddress(StringInfo remoteHostStringInfo);
|
||||||
static WorkerNode * FindRandomNodeNotInList(HTAB *WorkerNodesHash,
|
static WorkerNode * FindRandomNodeNotInList(HTAB *WorkerNodesHash,
|
||||||
List *currentNodeList);
|
List *currentNodeList);
|
||||||
|
@ -276,7 +277,7 @@ ClientHostAddress(StringInfo clientHostStringInfo)
|
||||||
* WorkerGetNodeWithName finds and returns a node from the membership list that
|
* WorkerGetNodeWithName finds and returns a node from the membership list that
|
||||||
* has the given hostname. The function returns null if no such node exists.
|
* has the given hostname. The function returns null if no such node exists.
|
||||||
*/
|
*/
|
||||||
WorkerNode *
|
static WorkerNode *
|
||||||
WorkerGetNodeWithName(const char *hostname)
|
WorkerGetNodeWithName(const char *hostname)
|
||||||
{
|
{
|
||||||
WorkerNode *workerNode = NULL;
|
WorkerNode *workerNode = NULL;
|
||||||
|
|
|
@ -57,7 +57,6 @@ extern WorkerNode * WorkerGetRoundRobinCandidateNode(List *workerNodeList,
|
||||||
uint64 shardId,
|
uint64 shardId,
|
||||||
uint32 placementIndex);
|
uint32 placementIndex);
|
||||||
extern WorkerNode * WorkerGetLocalFirstCandidateNode(List *currentNodeList);
|
extern WorkerNode * WorkerGetLocalFirstCandidateNode(List *currentNodeList);
|
||||||
extern WorkerNode * WorkerGetNodeWithName(const char *hostname);
|
|
||||||
extern uint32 WorkerGetLiveNodeCount(void);
|
extern uint32 WorkerGetLiveNodeCount(void);
|
||||||
extern List * ActiveWorkerNodeList(void);
|
extern List * ActiveWorkerNodeList(void);
|
||||||
extern WorkerNode * FindWorkerNode(char *nodeName, int32 nodePort);
|
extern WorkerNode * FindWorkerNode(char *nodeName, int32 nodePort);
|
||||||
|
|
Loading…
Reference in New Issue