mirror of https://github.com/citusdata/citus.git
fix
parent
01b2bf5e3c
commit
ac97d54515
|
@ -99,7 +99,6 @@ static int WorkerNodeListGetNodeWithGroupId(List *workerNodeList, int32 nodeGrou
|
||||||
RebalancerPlacementSeparationContext *
|
RebalancerPlacementSeparationContext *
|
||||||
PrepareRebalancerPlacementSeparationContext(List *activeWorkerNodeList,
|
PrepareRebalancerPlacementSeparationContext(List *activeWorkerNodeList,
|
||||||
List *rebalancePlacementList,
|
List *rebalancePlacementList,
|
||||||
WorkerNode *drainWorkerNode,
|
|
||||||
FmgrInfo *shardAllowedOnNodeUDF)
|
FmgrInfo *shardAllowedOnNodeUDF)
|
||||||
{
|
{
|
||||||
HTAB *nodePlacementGroupHash =
|
HTAB *nodePlacementGroupHash =
|
||||||
|
@ -115,7 +114,7 @@ PrepareRebalancerPlacementSeparationContext(List *activeWorkerNodeList,
|
||||||
rebalancePlacementList = SortList(rebalancePlacementList, CompareShardPlacements);
|
rebalancePlacementList = SortList(rebalancePlacementList, CompareShardPlacements);
|
||||||
|
|
||||||
InitRebalancerPlacementSeparationContext(context, activeWorkerNodeList,
|
InitRebalancerPlacementSeparationContext(context, activeWorkerNodeList,
|
||||||
rebalancePlacementList, drainWorkerNode);
|
rebalancePlacementList);
|
||||||
|
|
||||||
TryAssignPlacementGroupsToNodeGroups(context,
|
TryAssignPlacementGroupsToNodeGroups(context,
|
||||||
activeWorkerNodeList,
|
activeWorkerNodeList,
|
||||||
|
|
|
@ -598,7 +598,6 @@ GetRebalanceSteps(RebalanceOptions *options)
|
||||||
PrepareRebalancerPlacementSeparationContext(
|
PrepareRebalancerPlacementSeparationContext(
|
||||||
activeWorkerList,
|
activeWorkerList,
|
||||||
FlattenNestedList(activeShardPlacementListList),
|
FlattenNestedList(activeShardPlacementListList),
|
||||||
options->workerNode,
|
|
||||||
&context.shardAllowedOnNodeUDF);
|
&context.shardAllowedOnNodeUDF);
|
||||||
|
|
||||||
return RebalancePlacementUpdates(activeWorkerList,
|
return RebalancePlacementUpdates(activeWorkerList,
|
||||||
|
|
|
@ -26,9 +26,6 @@ extern RebalancerPlacementSeparationContext * PrepareRebalancerPlacementSeparati
|
||||||
List
|
List
|
||||||
*
|
*
|
||||||
activeShardPlacementList,
|
activeShardPlacementList,
|
||||||
WorkerNode
|
|
||||||
*
|
|
||||||
drainWorkerNode,
|
|
||||||
FmgrInfo
|
FmgrInfo
|
||||||
*
|
*
|
||||||
shardAllowedOnNodeUDF);
|
shardAllowedOnNodeUDF);
|
||||||
|
|
Loading…
Reference in New Issue