Merge pull request #12147 from kimchy/remove_double_elect

Remove double call to elect primaries
This commit is contained in:
Shay Banon 2015-07-09 11:44:17 +02:00
commit 8a52a362dd
1 changed files with 0 additions and 2 deletions

View File

@ -175,8 +175,6 @@ public class AllocationService extends AbstractComponent {
// now allocate all the unassigned to available nodes
if (allocation.routingNodes().hasUnassigned()) {
changed |= shardsAllocators.allocateUnassigned(allocation);
// elect primaries again, in case this is needed with unassigned allocation
changed |= electPrimariesAndUnassignedDanglingReplicas(allocation);
}
// move shards that no longer can be allocated