From 0637407ea4bf3a49ed5bdabadcfee650a8e0a200 Mon Sep 17 00:00:00 2001 From: Scott Blum Date: Thu, 2 Nov 2017 18:26:59 -0400 Subject: [PATCH] SOLR-11423: fix typo --- .../core/src/java/org/apache/solr/cloud/ZkDistributedQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fee74750cad..3a7c7502723 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); } }