mirror of
https://github.com/minio/minio.git
synced 2025-04-27 05:15:01 -04:00
Honor object retention when applying ILM policies (#14732)
This commit is contained in:
parent
0bd44a7764
commit
28d3ad3ada
@ -984,20 +984,8 @@ func (i *scannerItem) applyLifecycle(ctx context.Context, o ObjectLayer, oi Obje
|
|||||||
|
|
||||||
atomic.AddUint64(&globalScannerStats.ilmChecks, 1)
|
atomic.AddUint64(&globalScannerStats.ilmChecks, 1)
|
||||||
versionID := oi.VersionID
|
versionID := oi.VersionID
|
||||||
action := i.lifeCycle.ComputeAction(
|
rCfg, _ := globalBucketObjectLockSys.Get(i.bucket)
|
||||||
lifecycle.ObjectOpts{
|
action := evalActionFromLifecycle(ctx, *i.lifeCycle, rCfg, oi, false)
|
||||||
Name: i.objectPath(),
|
|
||||||
UserTags: oi.UserTags,
|
|
||||||
ModTime: oi.ModTime,
|
|
||||||
VersionID: oi.VersionID,
|
|
||||||
DeleteMarker: oi.DeleteMarker,
|
|
||||||
IsLatest: oi.IsLatest,
|
|
||||||
NumVersions: oi.NumVersions,
|
|
||||||
SuccessorModTime: oi.SuccessorModTime,
|
|
||||||
RestoreOngoing: oi.RestoreOngoing,
|
|
||||||
RestoreExpires: oi.RestoreExpires,
|
|
||||||
TransitionStatus: oi.TransitionedObject.Status,
|
|
||||||
})
|
|
||||||
if i.debug {
|
if i.debug {
|
||||||
if versionID != "" {
|
if versionID != "" {
|
||||||
console.Debugf(applyActionsLogPrefix+" lifecycle: %q (version-id=%s), Initial scan: %v\n", i.objectPath(), versionID, action)
|
console.Debugf(applyActionsLogPrefix+" lifecycle: %q (version-id=%s), Initial scan: %v\n", i.objectPath(), versionID, action)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user