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:
parent
ae27aa2f14
commit
d1e2b55c72
|
@ -620,6 +620,7 @@ func (i *PostingsIterator) nextDocNum() (uint64, bool, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
allN = i.all.Next()
|
allN = i.all.Next()
|
||||||
|
allNChunk = allN / i.postings.sb.chunkFactor
|
||||||
}
|
}
|
||||||
|
|
||||||
if i.currChunk != nChunk || i.currChunkFreqNorm == nil {
|
if i.currChunk != nChunk || i.currChunkFreqNorm == nil {
|
||||||
|
|
Loading…
Reference in New Issue