mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
Refreshing notification system should not erase the rules-map of other buckets (#7758)
Fixes #7707
This commit is contained in:
parent
e29a37e95c
commit
510ec153b9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user