diff options
| author | gfx <86091021+gfxlabs@users.noreply.github.com> | 2022-09-04 22:32:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-04 20:32:10 -0700 |
| commit | bf844d8e4623932cbe48d1b461894ade8a65b610 (patch) | |
| tree | 58590fdae57954cb41bdad6c923fa6d450b8829b /weed/filer/arangodb/arangodb_store_bucket.go | |
| parent | 36219877274e70cfe5df6a027b2ddf5ed4b65cc8 (diff) | |
| download | seaweedfs-bf844d8e4623932cbe48d1b461894ade8a65b610.tar.xz seaweedfs-bf844d8e4623932cbe48d1b461894ade8a65b610.zip | |
Fix crash in arangodb filer when attempting to access a deleted bucket (#3587)
* Update helpers.go
* Update arangodb_store_bucket.go
Diffstat (limited to 'weed/filer/arangodb/arangodb_store_bucket.go')
| -rw-r--r-- | weed/filer/arangodb/arangodb_store_bucket.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/filer/arangodb/arangodb_store_bucket.go b/weed/filer/arangodb/arangodb_store_bucket.go index b35a5c9b3..44aeeadea 100644 --- a/weed/filer/arangodb/arangodb_store_bucket.go +++ b/weed/filer/arangodb/arangodb_store_bucket.go @@ -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 |
