mirror of https://github.com/apache/lucene.git
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:
parent
35aa8a4a45
commit
ae797c0e18
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue