mirror of https://github.com/apache/lucene.git
Remove unnecessary assert, fix comment. (#13279)
This commit is contained in:
parent
d57267a0e6
commit
3c8467d353
|
@ -543,7 +543,7 @@ final class SegmentTermsEnumFrame {
|
|||
CompressionAlgorithm compressionAlg = CompressionAlgorithm.NO_COMPRESSION;
|
||||
|
||||
// Target's prefix matches this block's prefix; we
|
||||
// scan the entries check if the suffix matches.
|
||||
// scan the entries to check if the suffix matches.
|
||||
public SeekStatus scanToTermLeaf(BytesRef target, boolean exactOnly) throws IOException {
|
||||
|
||||
// if (DEBUG) System.out.println(" scanToTermLeaf: block fp=" + fp + " prefix=" + prefix +
|
||||
|
@ -610,7 +610,6 @@ final class SegmentTermsEnumFrame {
|
|||
// would have followed the index to this
|
||||
// sub-block from the start:
|
||||
|
||||
assert ste.termExists;
|
||||
fillTerm();
|
||||
// if (DEBUG) System.out.println(" found!");
|
||||
return SeekStatus.FOUND;
|
||||
|
@ -729,7 +728,7 @@ final class SegmentTermsEnumFrame {
|
|||
}
|
||||
|
||||
// Target's prefix matches this block's prefix; we
|
||||
// scan the entries check if the suffix matches.
|
||||
// scan the entries to check if the suffix matches.
|
||||
public SeekStatus scanToTermNonLeaf(BytesRef target, boolean exactOnly) throws IOException {
|
||||
|
||||
// if (DEBUG) System.out.println(" scanToTermNonLeaf: block fp=" + fp + " prefix=" + prefix +
|
||||
|
|
Loading…
Reference in New Issue