SOLR-6457

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1622820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2014-09-05 23:58:10 +00:00
parent ae797c0e18
commit db577f5962
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ public class LBHttpSolrServer extends SolrServer {
Map<String,ServerWrapper> justFailed = null;
for (int attempts=0; attempts<maxTries; attempts++) {
int count = counter.incrementAndGet() & 0x7FFFFFF;
int count = counter.incrementAndGet() & Integer.MAX_VALUE;
ServerWrapper wrapper = serverList[count % serverList.length];
wrapper.lastUsed = System.currentTimeMillis();