You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/11/09 21:19:08 UTC
[02/50] [abbrv] lucene-solr:jira/solr-11285-sim: SOLR-11423: fix typo
SOLR-11423: fix typo
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0637407e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0637407e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0637407e
Branch: refs/heads/jira/solr-11285-sim
Commit: 0637407ea4bf3a49ed5bdabadcfee650a8e0a200
Parents: 42cc1c0
Author: Scott Blum <dr...@apache.org>
Authored: Thu Nov 2 18:26:59 2017 -0400
Committer: Scott Blum <dr...@apache.org>
Committed: Thu Nov 2 18:26:59 2017 -0400
----------------------------------------------------------------------
solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0637407e/solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java b/solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java
index fee7475..3a7c750 100644
--- a/solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java
+++ b/solr/core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java
@@ -312,7 +312,7 @@ public class ZkDistributedQueue implements DistributedQueue {
}
// Allow this client to push up to 1% of the remaining queue capacity without rechecking.
- offerPermits.set(maxQueueSize - stat.getNumChildren() / 100);
+ offerPermits.set(remainingCapacity / 100);
}
}