mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 23:31:03 +00:00
Merge pull request #1723 from molecula/seebs/genfix
don't close storage after failing to open cache
This commit is contained in:
commit
39aa12b12a
1 changed files with 0 additions and 4 deletions
|
|
@ -286,10 +286,6 @@ func (f *fragment) Open() error {
|
|||
// Fill cache with rows persisted to disk.
|
||||
f.holder.Logger.Debugf("open cache for index/field/view/fragment: %s/%s/%s/%d", f.index(), f.field(), f.view(), f.shard)
|
||||
if err := f.openCache(); err != nil {
|
||||
e2 := f.closeStorage()
|
||||
if e2 != nil {
|
||||
return errors.Wrapf(err, "closing storage: %v, after opening cache", e2)
|
||||
}
|
||||
return errors.Wrap(err, "opening cache")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue