mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Clean up targets properly on bucket deletion (#12565)
This commit is contained in:
committed by
GitHub
parent
d40268d899
commit
ba6e9682e5
@@ -607,6 +607,7 @@ func (sys *NotificationSys) LoadBucketMetadata(ctx context.Context, bucketName s
|
||||
func (sys *NotificationSys) DeleteBucketMetadata(ctx context.Context, bucketName string) {
|
||||
globalReplicationStats.Delete(bucketName)
|
||||
globalBucketMetadataSys.Remove(bucketName)
|
||||
globalBucketTargetSys.Delete(bucketName)
|
||||
if localMetacacheMgr != nil {
|
||||
localMetacacheMgr.deleteBucketCache(bucketName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user