mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
Return remote tier as StorageClass for transitioned objects (#16035)
This commit is contained in:
parent
7ba281728f
commit
40a2c6b882
@ -168,7 +168,9 @@ func (fi FileInfo) ToObjectInfo(bucket, object string, versioned bool) ObjectInf
|
||||
objInfo.Parts = fi.Parts
|
||||
|
||||
// Update storage class
|
||||
if sc, ok := fi.Metadata[xhttp.AmzStorageClass]; ok {
|
||||
if fi.TransitionTier != "" {
|
||||
objInfo.StorageClass = fi.TransitionTier
|
||||
} else if sc, ok := fi.Metadata[xhttp.AmzStorageClass]; ok {
|
||||
objInfo.StorageClass = sc
|
||||
} else {
|
||||
objInfo.StorageClass = globalMinioDefaultStorageClass
|
||||
|
Loading…
Reference in New Issue
Block a user