lib/mergeset: add missing shouldCacheBlock (#1019)

This commit is contained in:
faceair 2021-01-15 03:46:01 -06:00 committed by Aliaksandr Valialkin
parent 5640e6cbca
commit cf76d8dd79

View file

@ -77,6 +77,7 @@ func (ps *partSearch) Init(p *part, shouldCacheBlock func(item []byte) bool) {
ps.p = p
ps.idxbCache = p.idxbCache
ps.ibCache = p.ibCache
ps.shouldCacheBlock = shouldCacheBlock
}
// Seek seeks for the first item greater or equal to k in ps.