mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Don't tier directory objects (#19891)
Directory objects are used by applications that simulate the folder structure of an on-disk filesystem. These are zero-byte objects with names ending with '/'. They are only used to check whether a 'folder' exists in the namespace.
This commit is contained in:
parent
2f6e03fb60
commit
069c4015cd
@ -583,6 +583,10 @@ func enqueueTransitionImmediate(obj ObjectInfo, src lcEventSrc) {
|
||||
if lc, err := globalLifecycleSys.Get(obj.Bucket); err == nil {
|
||||
switch event := lc.Eval(obj.ToLifecycleOpts()); event.Action {
|
||||
case lifecycle.TransitionAction, lifecycle.TransitionVersionAction:
|
||||
if obj.DeleteMarker || obj.IsDir {
|
||||
// nothing to transition
|
||||
return
|
||||
}
|
||||
globalTransitionState.queueTransitionTask(obj, event, src)
|
||||
}
|
||||
}
|
||||
|
@ -1233,7 +1233,7 @@ func evalActionFromLifecycle(ctx context.Context, lc lifecycle.Lifecycle, lr loc
|
||||
}
|
||||
|
||||
func applyTransitionRule(event lifecycle.Event, src lcEventSrc, obj ObjectInfo) bool {
|
||||
if obj.DeleteMarker {
|
||||
if obj.DeleteMarker || obj.IsDir {
|
||||
return false
|
||||
}
|
||||
globalTransitionState.queueTransitionTask(obj, event, src)
|
||||
|
Loading…
Reference in New Issue
Block a user