You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2021/03/29 10:16:47 UTC
[lucene] branch main updated: LUCENE-9887: fix error param use in
RadixSelector
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new cce9821 LUCENE-9887: fix error param use in RadixSelector
cce9821 is described below
commit cce982146af785b0fb5ad4945e8671e1ff76743a
Author: liupanfeng <li...@kanzhun.com>
AuthorDate: Mon Mar 29 16:53:48 2021 +0800
LUCENE-9887: fix error param use in RadixSelector
---
lucene/CHANGES.txt | 3 +++
lucene/core/src/java/org/apache/lucene/util/RadixSelector.java | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 1c32bcc..c0a505e 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -333,6 +333,9 @@ Bug Fixes
Luwak/Monitor bug causing registered queries to sometimes fail to
match. (Paweł Bugalski)
+* LUCENE-9887: Fixed parameter use in RadixSelector.
+ (liupanfeng via Adrien Grand)
+
Other
---------------------
diff --git a/lucene/core/src/java/org/apache/lucene/util/RadixSelector.java b/lucene/core/src/java/org/apache/lucene/util/RadixSelector.java
index ddd1a8d..9ef6377 100644
--- a/lucene/core/src/java/org/apache/lucene/util/RadixSelector.java
+++ b/lucene/core/src/java/org/apache/lucene/util/RadixSelector.java
@@ -125,7 +125,7 @@ public abstract class RadixSelector extends Selector {
}
private void select(int from, int to, int k, int d, int l) {
- if (to - from <= LENGTH_THRESHOLD || d >= LEVEL_THRESHOLD) {
+ if (to - from <= LENGTH_THRESHOLD || l >= LEVEL_THRESHOLD) {
getFallbackSelector(d).select(from, to, k);
} else {
radixSelect(from, to, k, d, l);