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
2022-01-03 01:16:20 -08:00
committed by Minio Trusted
co-authored by massintha azamoum
parent ec42715219
commit 47e54fb823
+3
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