LUCENE-3892: add nocommit

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/pforcodec_3892@1370207 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-08-07 12:36:08 +00:00
parent a858470de1
commit 844ffc433f
1 changed files with 11 additions and 2 deletions

View File

@ -530,9 +530,13 @@ public final class BlockPostingsReader extends PostingsReaderBase {
if (docUpto == docFreq) { if (docUpto == docFreq) {
return doc = NO_MORE_DOCS; 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) { if (docBufferUpto == blockSize) {
// nocommit hmm skip freq? but: we don't ever
// scan over more than one block?
refillDocs(); refillDocs();
} }
accum += docDeltaBuffer[docBufferUpto]; accum += docDeltaBuffer[docBufferUpto];
@ -842,6 +846,11 @@ public final class BlockPostingsReader extends PostingsReaderBase {
if (docUpto == docFreq) { if (docUpto == docFreq) {
return doc = NO_MORE_DOCS; 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) { if (docBufferUpto == blockSize) {
// nocommit hmm skip freq? but: we don't ever // nocommit hmm skip freq? but: we don't ever
// scan over more than one block? // scan over more than one block?