mirror of
https://github.com/minio/minio.git
synced 2025-04-20 02:27:50 -04:00
if object is a delete marker it must skip tags filter in ILM (#17861)
This commit is contained in:
parent
11dfc817f3
commit
bc7c0d8624
@ -136,6 +136,10 @@ Note: This rule has an implicit zero NoncurrentDays, which makes the expiry of t
|
|||||||
This is available only on MinIO as an extension to the Expiration feature. The following rule makes it possible to remove all versions of an object under
|
This is available only on MinIO as an extension to the Expiration feature. The following rule makes it possible to remove all versions of an object under
|
||||||
the prefix `user-uploads/` as soon as the latest object satisfies the expiration criteria.
|
the prefix `user-uploads/` as soon as the latest object satisfies the expiration criteria.
|
||||||
|
|
||||||
|
> NOTE: If the latest object is a delete marker then filtering based on `Filter.Tags` is ignored and
|
||||||
|
> if the DELETE marker modTime satisfies the `Expiration.Days` then all versions of the object are
|
||||||
|
> immediately purged.
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"Rules": [
|
"Rules": [
|
||||||
|
@ -261,7 +261,7 @@ func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
|
|||||||
if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
|
if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if !rule.Filter.TestTags(obj.UserTags) {
|
if !obj.DeleteMarker && !rule.Filter.TestTags(obj.UserTags) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
rules = append(rules, rule)
|
rules = append(rules, rule)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user