mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
Perform sanity check only if we have the storage it runs on
SanityCheckMapping is specific to roaring bitmaps stored in-memory, if we have an RBF backend, we shouldn't even try it, it'll just panic. This implies that, in whatever circumstance we were hitting this, we were getting an error back from the backend. We still need to address that error, but to do that we need to know what it was, which we don't if we panic.
This commit is contained in:
parent
769a750cdf
commit
14911bfdff
1 changed files with 1 additions and 1 deletions
|
|
@ -2485,7 +2485,7 @@ func (f *fragment) importPositions(tx Tx, set, clear []uint64, rowSet map[uint64
|
|||
err = doFunc()
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err != nil && f.storage != nil {
|
||||
// we got an error. it's possible that the error indicates that something went wrong.
|
||||
mappedIn, mappedOut, unmappedIn, errs, e2 := f.storage.SanityCheckMapping(f.currdata.from, f.currdata.to)
|
||||
if errs != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue