diff --git a/fragment.go b/fragment.go index 027f0bd56..db0d3fb13 100644 --- a/fragment.go +++ b/fragment.go @@ -274,7 +274,6 @@ func (f *Fragment) openCache() error { // Read in all rows by ID. // This will cause them to be added to the cache. for _, id := range pb.IDs { - //n := f.row(id, false, false).Count() n := f.storage.CountRange(id*SliceWidth, (id+1)*SliceWidth) f.cache.BulkAdd(id, n) } diff --git a/roaring/roaring_test.go b/roaring/roaring_test.go index a720692e6..cf4fc44e7 100644 --- a/roaring/roaring_test.go +++ b/roaring/roaring_test.go @@ -191,7 +191,7 @@ func TestBitmap_Max(t *testing.T) { } } } -func TestBitmap_BitmapCountRangeBug(t *testing.T) { +func TestBitmap_BitmapCountRangeEdgeCase(t *testing.T) { s := uint64(2009 * 1048576) e := uint64(2010 * 1048576)