diff --git a/lib/mergeset/part_search.go b/lib/mergeset/part_search.go index 79ed0968f..c2ef73de2 100644 --- a/lib/mergeset/part_search.go +++ b/lib/mergeset/part_search.go @@ -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.