mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00:00
Enabled to send audit log while version deletion (#16954)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
parent
f65cce4317
commit
5fe1b46bfd
|
@ -367,6 +367,16 @@ func deleteObjectVersions(ctx context.Context, o ObjectLayer, bucket string, toD
|
|||
continue
|
||||
}
|
||||
dobj := deletedObjs[i]
|
||||
// Send audit for the lifecycle delete operation
|
||||
auditLogLifecycle(
|
||||
ctx,
|
||||
ObjectInfo{
|
||||
Bucket: bucket,
|
||||
Name: dobj.ObjectName,
|
||||
VersionID: dobj.VersionID,
|
||||
},
|
||||
ILMExpiry)
|
||||
|
||||
sendEvent(eventArgs{
|
||||
EventName: event.ObjectRemovedDelete,
|
||||
BucketName: bucket,
|
||||
|
|
Loading…
Reference in a new issue