mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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
|
objInfo.Parts = fi.Parts
|
||||||
|
|
||||||
// Update storage class
|
// 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
|
objInfo.StorageClass = sc
|
||||||
} else {
|
} else {
|
||||||
objInfo.StorageClass = globalMinioDefaultStorageClass
|
objInfo.StorageClass = globalMinioDefaultStorageClass
|
||||||
|
Loading…
Reference in New Issue
Block a user