lifecycle: refactor rules filtering and tagging support (#15914)

This commit is contained in:
Anis Elleuch authored and GitHub committed 2022-10-21 10:46:53 -07:00
1 parent 5aba2aedb3
commit ac85c2af76
10 files changed
+229 -168

No files matched your search

+2 -2
View File
@@ -1530,9 +1530,9 @@ func (er erasureObjects) DeleteObject(ctx context.Context, bucket, object string
if opts.Expiration.Expire {
goi, _, err := er.getObjectInfoAndQuorum(ctx, bucket, object, opts)
if err == nil {
action := evalActionFromLifecycle(ctx, *lc, rcfg, goi)
evt := evalActionFromLifecycle(ctx, *lc, rcfg, goi)
var isErr bool
switch action {
switch evt.Action {
case lifecycle.NoneAction:
isErr = true
case lifecycle.TransitionAction, lifecycle.TransitionVersionAction: