Browse Source

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

fix https://github.com/seaweedfs/seaweedfs/issues/4337
pull/4339/head
chrislu 2 years ago
parent
commit
6bfb91b539
  1. 1
      weed/s3api/s3api_object_copy_handlers.go

1
weed/s3api/s3api_object_copy_handlers.go

@ -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)

Loading…
Cancel
Save