From 5d39bc0b1c8dc226ea09ed0fe63ac627dcb3fe67 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Wed, 9 Aug 2017 15:34:59 -0500 Subject: [PATCH] addressing concerns --- fragment.go | 1 - roaring/roaring_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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)