diff --git a/lib/mergeset/part.go b/lib/mergeset/part.go index 300f5d8a97..73122941fc 100644 --- a/lib/mergeset/part.go +++ b/lib/mergeset/part.go @@ -314,15 +314,10 @@ type inmemoryBlockCache struct { } type inmemoryBlockCacheKey struct { - firstItem string itemsBlockOffset uint64 } func (ibck *inmemoryBlockCacheKey) Init(bh *blockHeader) { - ibck.firstItem = "" - if bh.itemsBlockSize == 0 { - ibck.firstItem = string(bh.firstItem) - } ibck.itemsBlockOffset = bh.itemsBlockOffset }