diff --git a/cache.go b/cache.go index 184310361..7c2e96f2d 100644 --- a/cache.go +++ b/cache.go @@ -397,7 +397,8 @@ type SimpleCache struct { } func (s *SimpleCache) Fetch(id uint64) (*Bitmap, bool) { - return s.cache[id] + m, ok := s.cache[id] + return m, ok } func (s *SimpleCache) Add(id uint64, b *Bitmap) {