mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Send bucket name to peers when bucket notification is enabled (#11351)
This commit is contained in:
parent
6717295e18
commit
e7f6051f19
@ -139,6 +139,9 @@ func (api objectAPIHandlers) ListenNotificationHandler(w http.ResponseWriter, r
|
|||||||
return rulesMap.MatchSimple(ev.EventName, ev.S3.Object.Key)
|
return rulesMap.MatchSimple(ev.EventName, ev.S3.Object.Key)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if bucketName != "" {
|
||||||
|
values.Set(peerRESTListenBucket, bucketName)
|
||||||
|
}
|
||||||
for _, peer := range peers {
|
for _, peer := range peers {
|
||||||
if peer == nil {
|
if peer == nil {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user