mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Zero bitmap storage when reusing it for container-as-bitmap
If you don't do this, it works fine the first time you use a given storage, but after that you start seeing spurious bits.
This commit is contained in:
parent
397d93e84b
commit
36ef82d7ac
1 changed files with 3 additions and 0 deletions
|
|
@ -428,6 +428,9 @@ func (c *Container) AsBitmap(target []uint64) (out []uint64) {
|
|||
out = make([]uint64, 1024)
|
||||
} else {
|
||||
out = target
|
||||
for i := range out {
|
||||
out[i] = 0
|
||||
}
|
||||
}
|
||||
if c.typeID == containerArray {
|
||||
a := c.array()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue