Set object's original modTime when being restored (#19414)

Set object's modTime when being restored

restored here refers to making a temporary local copy in the hot tier
for a tiered object using the RestoreObject API
This commit is contained in:
Krishnan Parthasarathi 2024-04-05 04:39:31 -07:00 committed by GitHub
parent 1bb670ecba
commit a86d98826d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3708,6 +3708,7 @@ func (api objectAPIHandlers) PostRestoreObjectHandler(w http.ResponseWriter, r *
VersionID: objInfo.VersionID,
}, ObjectOptions{
VersionID: objInfo.VersionID,
MTime: objInfo.ModTime,
}); err != nil {
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidObjectState), r.URL)
return