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

This commit is contained in:
massintha azamoum 2021-01-26 22:48:28 +01:00 committed by GitHub
parent 6717295e18
commit e7f6051f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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