fix: remove objects when there are skipped versions due to ILM in decom (#17198)

This commit is contained in:
Anis Eleuch 2023-05-12 18:37:38 +01:00 committed by GitHub
parent f5a20a5d06
commit 883c98e26f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,7 +774,7 @@ func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool
for _, version := range fivs.Versions {
// Apply lifecycle rules on the objects that are expired.
if filterLifecycle(bi.Name, version.Name, version) {
logger.LogIf(ctx, fmt.Errorf("found %s/%s (%s) expired object based on ILM rules, skipping and scheduled for deletion", bi.Name, version.Name, version.VersionID))
decommissionedCount++
continue
}