From 73a0cc6488744518dd7e6890ea417cf8def9c9ca Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Sat, 5 Dec 2015 09:22:50 -0500 Subject: [PATCH] Clarify variable name in IndexingMemoryController#availableShards --- .../indices/memory/IndexingMemoryController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/indices/memory/IndexingMemoryController.java b/core/src/main/java/org/elasticsearch/indices/memory/IndexingMemoryController.java index c80af0fd514..fa418b8966a 100644 --- a/core/src/main/java/org/elasticsearch/indices/memory/IndexingMemoryController.java +++ b/core/src/main/java/org/elasticsearch/indices/memory/IndexingMemoryController.java @@ -200,16 +200,16 @@ public class IndexingMemoryController extends AbstractLifecycleComponent availableShards() { - List activeShards = new ArrayList<>(); + List 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 */