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

@@ -561,6 +561,7 @@ func generateListVersionsResponse(bucket, prefix, marker, versionIDMarker, delim
}
content.UserMetadata.Set(k, v)
}
content.UserMetadata.Set("expires", object.Expires.Format(http.TimeFormat))
content.Internal = &ObjectInternalInfo{
K: object.DataBlocks,
M: object.ParityBlocks,
@@ -704,6 +705,7 @@ func generateListObjectsV2Response(bucket, prefix, token, nextToken, startAfter,
}
content.UserMetadata.Set(k, v)
}
content.UserMetadata.Set("expires", object.Expires.Format(http.TimeFormat))
content.Internal = &ObjectInternalInfo{
K: object.DataBlocks,
M: object.ParityBlocks,