diff --git a/cmd/metacache-server-pool.go b/cmd/metacache-server-pool.go index 25cb61c8f..8a3469123 100644 --- a/cmd/metacache-server-pool.go +++ b/cmd/metacache-server-pool.go @@ -667,8 +667,11 @@ func filterLifeCycle(ctx context.Context, bucket string, lc lifecycle.Lifecycle, action := evalActionFromLifecycle(ctx, lc, lr, objInfo, false) switch action { case lifecycle.DeleteVersionAction, lifecycle.DeleteAction: - fallthrough + globalExpiryState.enqueueByDays(objInfo, false, action == lifecycle.DeleteVersionAction) + // Skip this entry. + continue case lifecycle.DeleteRestoredAction, lifecycle.DeleteRestoredVersionAction: + globalExpiryState.enqueueByDays(objInfo, true, action == lifecycle.DeleteRestoredVersionAction) // Skip this entry. continue }