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:
Anis Eleuch
2023-11-18 19:12:44 -08:00
committed by GitHub
parent 8317557f70
commit 02331a612c
5 changed files with 10 additions and 3 deletions

View File

@@ -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
}