mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/uint64set: add missing bucket32.b16his values
This commit is contained in:
parent
4cc0c44b9e
commit
257e61195a
1 changed files with 2 additions and 0 deletions
|
@ -364,6 +364,7 @@ func (b *bucket32) union(a *bucket32, mayOwn bool) {
|
||||||
}
|
}
|
||||||
if i >= len(bb16his) {
|
if i >= len(bb16his) {
|
||||||
for j < len(a.b16his) {
|
for j < len(a.b16his) {
|
||||||
|
b.b16his = append(b.b16his, a.b16his[j])
|
||||||
b16 := b.addBucket16()
|
b16 := b.addBucket16()
|
||||||
a.buckets[j].copyTo(b16)
|
a.buckets[j].copyTo(b16)
|
||||||
j++
|
j++
|
||||||
|
@ -371,6 +372,7 @@ func (b *bucket32) union(a *bucket32, mayOwn bool) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
for j < len(a.b16his) && a.b16his[j] < bb16his[i] {
|
for j < len(a.b16his) && a.b16his[j] < bb16his[i] {
|
||||||
|
b.b16his = append(b.b16his, a.b16his[j])
|
||||||
b16 := b.addBucket16()
|
b16 := b.addBucket16()
|
||||||
a.buckets[j].copyTo(b16)
|
a.buckets[j].copyTo(b16)
|
||||||
j++
|
j++
|
||||||
|
|
Loading…
Reference in a new issue