You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dn...@apache.org on 2020/09/06 15:11:05 UTC

[lucene-solr] branch master updated: LUCENE-9482: Fix deletion count error message

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

dnhatn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 1606a76  LUCENE-9482: Fix deletion count error message
1606a76 is described below

commit 1606a7618712a4c5f9f7e92ce44e489e9d07993e
Author: LWY <57...@qq.com>
AuthorDate: Sun Sep 6 23:10:51 2020 +0800

    LUCENE-9482: Fix deletion count error message
---
 lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java b/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
index 745b3d7..8ba766b 100644
--- a/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
+++ b/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
@@ -376,7 +376,7 @@ public final class SegmentInfos implements Cloneable, Iterable<SegmentCommitInfo
           throw new CorruptIndexException("invalid deletion count: " + softDelCount + " vs maxDoc=" + info.maxDoc(), input);
         }
         if (softDelCount + delCount > info.maxDoc()) {
-          throw new CorruptIndexException("invalid deletion count: " + softDelCount + delCount + " vs maxDoc=" + info.maxDoc(), input);
+          throw new CorruptIndexException("invalid deletion count: " + (softDelCount + delCount) + " vs maxDoc=" + info.maxDoc(), input);
         }
         final byte[] sciId;
         if (format > VERSION_74) {