From 63a2e0bab6f7a0def4ec9e4803b54ad72646d8c2 Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 2 Feb 2022 17:11:56 -0800 Subject: [PATCH] Remove notification from NotificationSys on bucket deletion (#14236) --- cmd/notification.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/notification.go b/cmd/notification.go index c26f61ebe..b620a223e 100644 --- a/cmd/notification.go +++ b/cmd/notification.go @@ -563,6 +563,7 @@ func (sys *NotificationSys) DeleteBucketMetadata(ctx context.Context, bucketName globalReplicationStats.Delete(bucketName) globalBucketMetadataSys.Remove(bucketName) globalBucketTargetSys.Delete(bucketName) + globalNotificationSys.RemoveNotification(bucketName) if localMetacacheMgr != nil { localMetacacheMgr.deleteBucketCache(bucketName) }