mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
if object is a delete marker it must skip tags filter in ILM (#17861)
This commit is contained in:
@@ -261,7 +261,7 @@ func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
|
||||
if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
|
||||
continue
|
||||
}
|
||||
if !rule.Filter.TestTags(obj.UserTags) {
|
||||
if !obj.DeleteMarker && !rule.Filter.TestTags(obj.UserTags) {
|
||||
continue
|
||||
}
|
||||
rules = append(rules, rule)
|
||||
|
||||
Reference in New Issue
Block a user