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:
Michael McCandless 2012-05-04 23:09:31 +00:00
parent f21f747bac
commit 20ad9d7253

View File

@ -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);
//}