Remove unused deciders in BalancedShardsAllocator (#62026)

This commit is contained in:
Howard 2020-09-07 12:02:31 +08:00 committed by Nhat Nguyen
parent 1e3edbbe74
commit b26584dff8
1 changed files with 0 additions and 1 deletions

View File

@ -765,7 +765,6 @@ public class BalancedShardsAllocator implements ShardsAllocator {
* TODO: We could be smarter here and group the shards by index and then
* use the sorter to save some iterations.
*/
final AllocationDeciders deciders = allocation.deciders();
final PriorityComparator secondaryComparator = PriorityComparator.getAllocationComparator(allocation);
final Comparator<ShardRouting> comparator = (o1, o2) -> {
if (o1.primary() ^ o2.primary()) {