mirror of https://github.com/citusdata/citus.git
better
parent
d9c1e992b2
commit
74e6002739
|
@ -251,18 +251,18 @@ TryAssignPlacementGroupsToNodeGroups(RebalancerPlacementSeparationContext *conte
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For the shardgroup placements that could not be assigned to their
|
* For the shardgroup placements that could not be assigned to their
|
||||||
* current node, assign them to any other node that is available.
|
* current node, assign them to any other node.
|
||||||
*/
|
*/
|
||||||
ShardPlacement *unassignedShardPlacement = NULL;
|
ShardPlacement *unassignedShardPlacement = NULL;
|
||||||
foreach_ptr(unassignedShardPlacement, unassignedPlacementList)
|
foreach_ptr(unassignedShardPlacement, unassignedPlacementList)
|
||||||
{
|
{
|
||||||
bool separated = false;
|
bool separated = false;
|
||||||
|
|
||||||
WorkerNode *availableWorkerNode = NULL;
|
WorkerNode *activeWorkerNode = NULL;
|
||||||
foreach_ptr(availableWorkerNode, activeWorkerNodeList)
|
foreach_ptr(activeWorkerNode, activeWorkerNodeList)
|
||||||
{
|
{
|
||||||
if (TryAssignPlacementGroupToNodeGroup(context,
|
if (TryAssignPlacementGroupToNodeGroup(context,
|
||||||
availableWorkerNode->groupId,
|
activeWorkerNode->groupId,
|
||||||
unassignedShardPlacement,
|
unassignedShardPlacement,
|
||||||
shardAllowedOnNodeUDF))
|
shardAllowedOnNodeUDF))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue