mirror of https://github.com/minio/minio.git
lifecycle: Set opts.VersionSuspended when expiring objects (#14902)
This commit is contained in:
parent
74285d50c4
commit
88dd83a365
|
@ -1185,6 +1185,7 @@ func applyExpiryOnNonTransitionedObjects(ctx context.Context, objLayer ObjectLay
|
||||||
}
|
}
|
||||||
if opts.VersionID == "" {
|
if opts.VersionID == "" {
|
||||||
opts.Versioned = globalBucketVersioningSys.PrefixEnabled(obj.Bucket, obj.Name)
|
opts.Versioned = globalBucketVersioningSys.PrefixEnabled(obj.Bucket, obj.Name)
|
||||||
|
opts.VersionSuspended = globalBucketVersioningSys.PrefixSuspended(obj.Bucket, obj.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
obj, err := objLayer.DeleteObject(ctx, obj.Bucket, obj.Name, opts)
|
obj, err := objLayer.DeleteObject(ctx, obj.Bucket, obj.Name, opts)
|
||||||
|
|
Loading…
Reference in New Issue