Remove recurse into sub block when scan leaf block.

This commit is contained in:
zhouhui 2024-09-14 10:40:43 +08:00
parent 5045d3c67b
commit 92ecfa4e86
1 changed files with 0 additions and 13 deletions

View File

@ -550,19 +550,6 @@ final class IDVersionSegmentTermsEnumFrame {
// return NOT_FOUND:
fillTerm();
if (!exactOnly && !ste.termExists) {
// We are on a sub-block, and caller wants
// us to position to the next term after
// the target, so we must recurse into the
// sub-frame(s):
ste.currentFrame = ste.pushFrame(null, ste.currentFrame.lastSubFP, termLen);
ste.currentFrame.loadBlock();
while (ste.currentFrame.next()) {
ste.currentFrame = ste.pushFrame(null, ste.currentFrame.lastSubFP, ste.term.length());
ste.currentFrame.loadBlock();
}
}
// if (DEBUG) System.out.println(" not found");
return SeekStatus.NOT_FOUND;
} else if (stop) {