Преглед на файлове

Minor cleanups in ShardsLimitAllocationDecider

Simon Willnauer преди 11 години
родител
ревизия
411af96044
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/main/java/org/elasticsearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java

+ 3 - 3
src/main/java/org/elasticsearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java

@@ -50,8 +50,8 @@ import org.elasticsearch.common.settings.Settings;
 public class ShardsLimitAllocationDecider extends AllocationDecider {
 
     /**
-     * Controls the maximum number of shards per index on a single elastic
-     * search node. Negative values are interpreted as unlimited.
+     * Controls the maximum number of shards per index on a single Elasticsearch
+     * node. Negative values are interpreted as unlimited.
      */
     public static final String INDEX_TOTAL_SHARDS_PER_NODE = "index.routing.allocation.total_shards_per_node";
 
@@ -95,7 +95,7 @@ public class ShardsLimitAllocationDecider extends AllocationDecider {
         }
 
         int nodeCount = 0;
-        for (MutableShardRouting nodeShard : node) {;
+        for (MutableShardRouting nodeShard : node) {
             if (!nodeShard.index().equals(shardRouting.index())) {
                 continue;
             }