You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by vi...@apache.org on 2023/04/14 21:06:25 UTC

[lucene] branch main updated: Fix typo in CheckJoinIndex (#12231)

This is an automated email from the ASF dual-hosted git repository.

vigyasharma 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 4e88118a35f Fix typo in CheckJoinIndex (#12231)
4e88118a35f is described below

commit 4e88118a35f9d4b46acfdf6064ba65a2a2f4b450
Author: Vigya Sharma <vi...@gmail.com>
AuthorDate: Fri Apr 14 14:06:19 2023 -0700

    Fix typo in CheckJoinIndex (#12231)
---
 lucene/join/src/java/org/apache/lucene/search/join/CheckJoinIndex.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/join/src/java/org/apache/lucene/search/join/CheckJoinIndex.java b/lucene/join/src/java/org/apache/lucene/search/join/CheckJoinIndex.java
index c6c3213dc3e..4f2e0ad6a8c 100644
--- a/lucene/join/src/java/org/apache/lucene/search/join/CheckJoinIndex.java
+++ b/lucene/join/src/java/org/apache/lucene/search/join/CheckJoinIndex.java
@@ -63,7 +63,7 @@ public class CheckJoinIndex {
           for (int child = prevParentDoc + 1; child != parentDoc; child++) {
             final boolean childIsLive = liveDocs.get(child);
             if (parentIsLive != childIsLive) {
-              if (childIsLive) {
+              if (parentIsLive) {
                 throw new IllegalStateException(
                     "Parent doc "
                         + parentDoc