From cf76d8dd79fdf1e0207cf6c3019aa92275adfc61 Mon Sep 17 00:00:00 2001 From: faceair Date: Fri, 15 Jan 2021 03:46:01 -0600 Subject: [PATCH] lib/mergeset: add missing shouldCacheBlock (#1019) --- lib/mergeset/part_search.go | 1 + 1 file changed, 1 insertion(+) 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.