SOLR-6457

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1622817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2014-09-05 23:40:05 +00:00
parent 35aa8a4a45
commit ae797c0e18
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();
int count = counter.incrementAndGet() & 0x7FFFFFF;
ServerWrapper wrapper = serverList[count % serverList.length];
wrapper.lastUsed = System.currentTimeMillis();