Fix crash in arangodb filer when attempting to access a deleted bucket (#3587)
* Update helpers.go * Update arangodb_store_bucket.go
This commit is contained in:
@@ -86,7 +86,7 @@ func (store *ArangodbStore) ensureBucket(ctx context.Context, bucket string) (bc
|
||||
store.mu.RLock()
|
||||
bc, ok = store.buckets[bucket]
|
||||
store.mu.RUnlock()
|
||||
if ok {
|
||||
if ok && bc != nil {
|
||||
return bc, nil
|
||||
}
|
||||
store.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user