mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
update notification rulesMap when reloading bucketMetadata (#9917)
This commit is contained in:
@@ -606,6 +606,10 @@ func (s *peerRESTServer) LoadBucketMetadataHandler(w http.ResponseWriter, r *htt
|
|||||||
}
|
}
|
||||||
|
|
||||||
globalBucketMetadataSys.Set(bucketName, meta)
|
globalBucketMetadataSys.Set(bucketName, meta)
|
||||||
|
|
||||||
|
if meta.notificationConfig != nil {
|
||||||
|
globalNotificationSys.AddRulesMap(bucketName, meta.notificationConfig.ToRulesMap())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReloadFormatHandler - Reload Format.
|
// ReloadFormatHandler - Reload Format.
|
||||||
|
|||||||
Reference in New Issue
Block a user