Send bucket name to peers when bucket notification is enabled (#11351) (#13035)

Co-authored-by: massintha azamoum <40169489+massintha-riaktr@users.noreply.github.com>
This commit is contained in:
Anis Elleuch 2021-08-23 15:08:11 +01:00 committed by Minio Trusted
parent ec42715219
commit 47e54fb823

View File

@ -139,6 +139,9 @@ func (api objectAPIHandlers) ListenNotificationHandler(w http.ResponseWriter, r
return rulesMap.MatchSimple(ev.EventName, ev.S3.Object.Key)
})
if bucketName != "" {
values.Set(peerRESTListenBucket, bucketName)
}
for _, peer := range peers {
if peer == nil {
continue