mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
events: Change event notifiers to delete and update keys. (#2742)
ElasticSearch and Redis are both treated like a database. Each indexs are based on the object names uniquely indentifying the event. Upon each delete event of the named object deletes the index on elasticsearch and redis respectively.
This commit is contained in:
@@ -204,7 +204,9 @@ func eventNotify(event eventData) {
|
||||
targetLog := globalEventNotifier.GetQueueTarget(qConfig.QueueARN)
|
||||
if targetLog != nil {
|
||||
targetLog.WithFields(logrus.Fields{
|
||||
"Records": notificationEvent,
|
||||
"Key": objectName,
|
||||
"EventType": eventType,
|
||||
"Records": notificationEvent,
|
||||
}).Info()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user