mirror of https://github.com/apache/lucene.git
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:
parent
a858470de1
commit
844ffc433f
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue