From e7f6051f199c91b5eef2e243c196bf893eba8308 Mon Sep 17 00:00:00 2001 From: massintha azamoum <40169489+massintha-riaktr@users.noreply.github.com> Date: Tue, 26 Jan 2021 22:48:28 +0100 Subject: [PATCH] Send bucket name to peers when bucket notification is enabled (#11351) --- cmd/listen-notification-handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/listen-notification-handlers.go b/cmd/listen-notification-handlers.go index 097ce1af9..0888804c2 100644 --- a/cmd/listen-notification-handlers.go +++ b/cmd/listen-notification-handlers.go @@ -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