Apache Lucene open-source search software
LUCENE-3892: add nocommit
Michael McCandless844ffc433f3c
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/block/BlockPostingsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/block/BlockPostingsReader.javaindex bf65f91f08d..577a199b120 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/block/BlockPostingsReader.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/block/BlockPostingsReader.java@@ -530,9 +530,13 @@ public final class BlockPostingsReader extends PostingsReaderBase {if (docUpto == docFreq) {return doc = NO_MORE_DOCS;}++ // nocommit: in theory we should not hit this? ie+ // skipper should already have moved us to the block+ // containing the doc? yet assert false trips ... i+ // think because if you advance w/o having done a+ // nextDoc yet()... can we assert/remove this?if (docBufferUpto == blockSize) {- // nocommit hmm skip freq? but: we don't ever- // scan over more than one block?refillDocs();}accum += docDeltaBuffer[docBufferUpto];@@ -842,6 +846,11 @@ public final class BlockPostingsReader extends PostingsReaderBase {if (docUpto == docFreq) {return doc = NO_MORE_DOCS;}+ // nocommit: in theory we should not hit this? ie+ // skipper should already have moved us to the block+ // containing the doc? yet assert false trips ... i+ // think because if you advance w/o having done a+ // nextDoc yet()... can we assert/remove this?if (docBufferUpto == blockSize) {// nocommit hmm skip freq? but: we don't ever// scan over more than one block?