Remove unnecessary assert, fix comment. (#13279)

This commit is contained in:
zhouhui 2024-04-23 22:11:59 +08:00 committed by GitHub
parent d57267a0e6
commit 3c8467d353
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -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 +