mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -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:
committed by
GitHub
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user