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:
gfx
2022-09-04 22:32:10 -05:00
committed by GitHub
parent 3621987727
commit bf844d8e46
2 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,9 @@ func (store *ArangodbStore) OnBucketDeletion(bucket string) {
glog.Errorf("bucket delete %s: %v", bucket, err)
return
}
store.mu.Lock()
delete(store.buckets, bucket)
store.mu.Unlock()
}
func (store *ArangodbStore) CanDropWholeBucket() bool {
return true