mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-06 10:57:51 +00:00
lock read from bsig.BitDepth, not just write to it
This commit is contained in:
parent
8eaa4e592f
commit
c1c0e828cd
1 changed files with 2 additions and 2 deletions
4
field.go
4
field.go
|
|
@ -1596,15 +1596,15 @@ func (f *Field) importValue(qcx *Qcx, columnIDs []uint64, values []int64, option
|
|||
requiredDepth = v
|
||||
}
|
||||
// Increase bit depth if required.
|
||||
f.mu.Lock()
|
||||
bitDepth := bsig.BitDepth
|
||||
if requiredDepth > bitDepth {
|
||||
f.mu.Lock()
|
||||
bsig.BitDepth = requiredDepth
|
||||
f.options.BitDepth = requiredDepth
|
||||
f.mu.Unlock()
|
||||
} else {
|
||||
requiredDepth = bitDepth
|
||||
}
|
||||
f.mu.Unlock()
|
||||
|
||||
// Import into each fragment.
|
||||
for key, data := range dataByFragment {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue