pass to canAllocate (though nothing is done there now) the actual routing nodes
This commit is contained in:
parent
1ddd969fa7
commit
5d2c005622
|
@ -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...
|
||||
|
|
Loading…
Reference in New Issue