mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
Fix DeleteObject when only free versions remain (#16289)
This commit is contained in:
committed by
GitHub
parent
34167c51d5
commit
2fa35def2c
@@ -997,7 +997,8 @@ func (i *scannerItem) applyTierObjSweep(ctx context.Context, o ObjectLayer, oi O
|
||||
|
||||
// Remove this free version
|
||||
_, err = o.DeleteObject(ctx, oi.Bucket, oi.Name, ObjectOptions{
|
||||
VersionID: oi.VersionID,
|
||||
VersionID: oi.VersionID,
|
||||
InclFreeVersions: true,
|
||||
})
|
||||
if err == nil {
|
||||
auditLogLifecycle(ctx, oi, ILMFreeVersionDelete)
|
||||
|
||||
Reference in New Issue
Block a user