mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
provided some clarification of CountRange issue
This commit is contained in:
parent
7bcbfaef09
commit
89b72cbfc8
1 changed files with 2 additions and 0 deletions
|
|
@ -234,6 +234,8 @@ func (b *Bitmap) CountRange(start, end uint64) (n uint64) {
|
|||
|
||||
// Count containers in between.
|
||||
for x := i + 1; x < j; x++ {
|
||||
// Ensure that current container is inside the requested range since
|
||||
// keys to not have to be consecutive
|
||||
if ekey < b.keys[x] {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue