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

master
massintha azamoum 4 years ago committed by GitHub
parent 6717295e18
commit e7f6051f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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

Loading…
Cancel
Save