tenant-schema-isolation-complete-view
Onur Tirtir 2023-10-24 18:35:16 +03:00
parent d9c1e992b2
commit 74e6002739
1 changed files with 4 additions and 4 deletions

View File

@ -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))
{ {