mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Send kafka notification messages in batches when queue_dir is enabled (#18164)
Fixes #18124
This commit is contained in:
@@ -167,6 +167,21 @@ func (store *QueueStore[_]) Del(key string) error {
|
||||
return store.del(key)
|
||||
}
|
||||
|
||||
// DelList - Deletes a list of entries from the store.
|
||||
// Returns an error even if one key fails to be deleted.
|
||||
func (store *QueueStore[_]) DelList(keys []string) error {
|
||||
store.Lock()
|
||||
defer store.Unlock()
|
||||
|
||||
for _, key := range keys {
|
||||
if err := store.del(key); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Len returns the entry count.
|
||||
func (store *QueueStore[_]) Len() int {
|
||||
store.RLock()
|
||||
|
||||
Reference in New Issue
Block a user