mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Send kafka notification messages in batches when queue_dir is enabled (#18164)
Fixes #18124
This commit is contained in:
@@ -361,8 +361,8 @@ func (h *Target) Send(ctx context.Context, entry interface{}) error {
|
||||
}
|
||||
|
||||
// SendFromStore - reads the log from store and sends it to kafka.
|
||||
func (h *Target) SendFromStore(key string) (err error) {
|
||||
auditEntry, err := h.store.Get(key)
|
||||
func (h *Target) SendFromStore(key store.Key) (err error) {
|
||||
auditEntry, err := h.store.Get(key.Name)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
@@ -376,7 +376,7 @@ func (h *Target) SendFromStore(key string) (err error) {
|
||||
return
|
||||
}
|
||||
// Delete the event from store.
|
||||
return h.store.Del(key)
|
||||
return h.store.Del(key.Name)
|
||||
}
|
||||
|
||||
// Cancel - cancels the target
|
||||
|
||||
Reference in New Issue
Block a user