lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject lucene-solr git commit: SOLR-8566: SyncStrategy.syncWithReplicas initialCapacity tweak
Date Tue, 26 Jan 2016 13:27:22 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master f31560bd8 -> 2782f6074


SOLR-8566: SyncStrategy.syncWithReplicas initialCapacity tweak


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2782f607
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2782f607
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2782f607

Branch: refs/heads/master
Commit: 2782f607446418d3d991d2ef2ca2be0b1f5d3350
Parents: f31560b
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Tue Jan 26 13:26:25 2016 +0000
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Tue Jan 26 13:26:25 2016 +0000

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2782f607/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java b/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
index 6098d09..d555f61 100644
--- a/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
+++ b/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
@@ -166,7 +166,7 @@ public class SyncStrategy {
       return true;
     }
     
-    List<String> syncWith = new ArrayList<>();
+    List<String> syncWith = new ArrayList<>(nodes.size());
     for (ZkCoreNodeProps node : nodes) {
       syncWith.add(node.getCoreUrl());
     }


Mime
View raw message