mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: DeleteBucketThrottle must delete ARN (#17034)
This commit is contained in:
parent
6c1410f7f5
commit
e96c88e914
@ -186,10 +186,14 @@ func (m *Monitor) DeleteBucket(bucket string) {
|
||||
// DeleteBucketThrottle deletes monitoring for a bucket's target
|
||||
func (m *Monitor) DeleteBucketThrottle(bucket, arn string) {
|
||||
m.tlock.Lock()
|
||||
delete(m.bucketThrottle, bucket)
|
||||
if _, ok := m.bucketThrottle[bucket]; ok {
|
||||
delete(m.bucketThrottle[bucket], arn)
|
||||
}
|
||||
m.tlock.Unlock()
|
||||
m.mlock.Lock()
|
||||
delete(m.activeBuckets, bucket)
|
||||
if _, ok := m.activeBuckets[bucket]; ok {
|
||||
delete(m.activeBuckets[bucket], arn)
|
||||
}
|
||||
m.mlock.Unlock()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user