update entry Attributes.Mtime = time.Now().Unix()

fix https://github.com/seaweedfs/seaweedfs/issues/4337
This commit is contained in:
chrislu 2023-03-25 22:02:57 -07:00
parent 5db9fcccd4
commit 6bfb91b539

View File

@ -46,6 +46,7 @@ func (s3a *S3ApiServer) CopyObjectHandler(w http.ResponseWriter, r *http.Request
return
}
entry.Extended, err = processMetadataBytes(r.Header, entry.Extended, replaceMeta, replaceTagging)
entry.Attributes.Mtime = time.Now().Unix()
if err != nil {
glog.Errorf("CopyObjectHandler ValidateTags error %s: %v", r.URL, err)
s3err.WriteErrorResponse(w, r, s3err.ErrInvalidTag)