pass to canAllocate (though nothing is done there now) the actual routing nodes

This commit is contained in:
kimchy 2010-08-21 17:52:24 +03:00
parent 1ddd969fa7
commit 5d2c005622
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ public class PreferUnallocatedShardUnassignedStrategy extends AbstractComponent
}
// check if we can allocate on that node...
if (!(node.canAllocate(routingNodes.metaData(), routingNodes.routingTable()) && node.canAllocate(shard))) {
if (!(node.canAllocate(routingNodes) && node.canAllocate(shard))) {
continue;
}
// if it is already allocated, we can't assign to it...