diff --git a/roaring/roaring.go b/roaring/roaring.go index e0fa9948c..8d612b5e5 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -592,6 +592,10 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) { otherIters[j].handled = true } } + + // Now that we've calculated a container is that a union of all the containers + // with the same key across all the bitmaps, we store it in the list of containers + // for the target. target.Containers.Put(iKey, container) } }