update notification rulesMap when reloading bucketMetadata (#9917)

This commit is contained in:
Praveen raj Mani 2020-06-27 01:47:31 +05:30 committed by GitHub
parent 2f681bed57
commit cf5d051afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.