mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
batch-repl: Replicate missing metadata and standard headers (#18484)
- Replicate Expires when the source is local or remote - Replicate metadata when the source is remote
This commit is contained in:
@@ -520,6 +520,10 @@ func toObjectInfo(bucket, object string, objInfo miniogo.ObjectInfo) ObjectInfo
|
||||
oi.UserDefined[xhttp.AmzStorageClass] = objInfo.StorageClass
|
||||
}
|
||||
|
||||
for k, v := range objInfo.UserMetadata {
|
||||
oi.UserDefined[k] = v
|
||||
}
|
||||
|
||||
return oi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user