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 return
} }
entry.Extended, err = processMetadataBytes(r.Header, entry.Extended, replaceMeta, replaceTagging) entry.Extended, err = processMetadataBytes(r.Header, entry.Extended, replaceMeta, replaceTagging)
entry.Attributes.Mtime = time.Now().Unix()
if err != nil { if err != nil {
glog.Errorf("CopyObjectHandler ValidateTags error %s: %v", r.URL, err) glog.Errorf("CopyObjectHandler ValidateTags error %s: %v", r.URL, err)
s3err.WriteErrorResponse(w, r, s3err.ErrInvalidTag) s3err.WriteErrorResponse(w, r, s3err.ErrInvalidTag)