mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 15:29:28 +00:00
LUCENE-4028: add missing subCode=...s in nextNonLeaf
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1334249 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f21f747bac
commit
20ad9d7253
@ -2436,12 +2436,14 @@ public class BlockTreeTermsReader extends FieldsProducer {
|
||||
if ((code & 1) == 0) {
|
||||
// A normal term
|
||||
termExists = true;
|
||||
subCode = 0;
|
||||
state.termBlockOrd++;
|
||||
return false;
|
||||
} else {
|
||||
// A sub-block; make sub-FP absolute:
|
||||
termExists = false;
|
||||
lastSubFP = fp - suffixesReader.readVLong();
|
||||
subCode = suffixesReader.readVLong();
|
||||
lastSubFP = fp - subCode;
|
||||
//if (DEBUG) {
|
||||
//System.out.println(" lastSubFP=" + lastSubFP);
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user