Refreshing notification system should not erase the rules-map of other buckets (#7758)

Fixes #7707
master
Praveen raj Mani 6 years ago committed by Harshavardhana
parent e29a37e95c
commit 510ec153b9
  1. 4
      cmd/notification.go

@ -656,7 +656,9 @@ func (sys *NotificationSys) refresh(objAPI ObjectLayer) error {
ctx := logger.SetReqInfo(context.Background(), &logger.ReqInfo{BucketName: bucket.Name})
config, err := readNotificationConfig(ctx, objAPI, bucket.Name)
if err != nil && err != errNoSuchNotifications {
return err
if _, ok := err.(*event.ErrARNNotFound); ok {
continue
}
}
if err == errNoSuchNotifications {
continue

Loading…
Cancel
Save