Skip to content

Commit de56d71

Browse files
Remove unused deciders in BalancedShardsAllocator (elastic#62026)
1 parent 1f2f49b commit de56d71

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java

-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ private void allocateUnassigned() {
765765
* TODO: We could be smarter here and group the shards by index and then
766766
* use the sorter to save some iterations.
767767
*/
768-
final AllocationDeciders deciders = allocation.deciders();
769768
final PriorityComparator secondaryComparator = PriorityComparator.getAllocationComparator(allocation);
770769
final Comparator<ShardRouting> comparator = (o1, o2) -> {
771770
if (o1.primary() ^ o2.primary()) {

0 commit comments

Comments
 (0)