mirror of https://github.com/apache/lucene.git
LUCENE-9482: Fix deletion count error message
This commit is contained in:
parent
ecb8ca2fef
commit
1606a76187
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue