update notification rulesMap when reloading bucketMetadata (#9917)

This commit is contained in:
Praveen raj Mani
2020-06-26 13:17:55 -07:00
committed by Harshavardhana
parent a5b1d8731c
commit dda14f3eae
+4
View File
@@ -606,6 +606,10 @@ func (s *peerRESTServer) LoadBucketMetadataHandler(w http.ResponseWriter, r *htt
}
globalBucketMetadataSys.Set(bucketName, meta)
if meta.notificationConfig != nil {
globalNotificationSys.AddRulesMap(bucketName, meta.notificationConfig.ToRulesMap())
}
}
// ReloadFormatHandler - Reload Format.