Skip to content

Commit

Permalink
Fix a bitor problem of bit_or (matrixorigin#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
NTH19 authored Apr 7, 2022
1 parent 061dccb commit 40e9b6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/container/ring/bitor/bitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ func (r *BitOrRing) Grows(size int, m *mheap.Mheap) error {
}
r.Values = r.Values[:n+size]

// set all empty to ^uint64(0)
for i := 0; i < size; i++ {
r.Values[n+i] = ^uint64(0)
r.Values[n+i] = 0
}

for i := 0; i < size; i++ {
Expand Down

0 comments on commit 40e9b6e

Please sign in to comment.