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

Fixes #7707
This commit is contained in:
Praveen raj Mani 2019-06-15 15:44:27 +05:30 committed by Harshavardhana
parent e29a37e95c
commit 510ec153b9

View File

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