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) { if ((code & 1) == 0) {
// A normal term // A normal term
termExists = true; termExists = true;
subCode = 0;
state.termBlockOrd++; state.termBlockOrd++;
return false; return false;
} else { } else {
// A sub-block; make sub-FP absolute: // A sub-block; make sub-FP absolute:
termExists = false; termExists = false;
lastSubFP = fp - suffixesReader.readVLong(); subCode = suffixesReader.readVLong();
lastSubFP = fp - subCode;
//if (DEBUG) { //if (DEBUG) {
//System.out.println(" lastSubFP=" + lastSubFP); //System.out.println(" lastSubFP=" + lastSubFP);
//} //}