mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Fix frame SetBit slice calculation.
This commit is contained in:
parent
f53cdd3275
commit
9161ff122a
1 changed files with 1 additions and 1 deletions
2
frame.go
2
frame.go
|
|
@ -288,7 +288,7 @@ func (f *Frame) newFragment(path string, slice uint64) *Fragment {
|
|||
|
||||
// SetBit sets a bit within the frame.
|
||||
func (f *Frame) SetBit(bitmapID, profileID uint64) (changed bool, err error) {
|
||||
slice := bitmapID / SliceWidth
|
||||
slice := profileID / SliceWidth
|
||||
frag, err := f.CreateFragmentIfNotExists(slice)
|
||||
if err != nil {
|
||||
return changed, err
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue