Clarify variable name in IndexingMemoryController#availableShards

This commit is contained in:
Jason Tedor 2015-12-05 09:22:50 -05:00
parent cea1c465d4
commit 73a0cc6488
1 changed files with 3 additions and 3 deletions

View File

@ -200,16 +200,16 @@ public class IndexingMemoryController extends AbstractLifecycleComponent<Indexin
}
protected List<IndexShard> availableShards() {
List<IndexShard> activeShards = new ArrayList<>();
List<IndexShard> availableShards = new ArrayList<>();
for (IndexService indexService : indicesService) {
for (IndexShard shard : indexService) {
if (shardAvailable(shard)) {
activeShards.add(shard);
availableShards.add(shard);
}
}
}
return activeShards;
return availableShards;
}
/** returns true if shard exists and is availabe for updates */