mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
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:
parent
1bb670ecba
commit
a86d98826d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user