0
0
Fork 0

scorch zap postingsItr.nextDocNum() maintains allNChunk correctly

When PostingsIterator.nextDocNum() moves the 'all' roaring bitmap
iterator forwards, it was incorrectly not keeping the allNChunk value
aligned.
This commit is contained in:
Steve Yen 2018-03-21 17:47:56 -07:00
parent ae27aa2f14
commit d1e2b55c72
1 changed files with 1 additions and 0 deletions

View File

@ -620,6 +620,7 @@ func (i *PostingsIterator) nextDocNum() (uint64, bool, error) {
}
allN = i.all.Next()
allNChunk = allN / i.postings.sb.chunkFactor
}
if i.currChunk != nChunk || i.currChunkFreqNorm == nil {