mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix 'NoSuchUpload' when upload part (#3968)
This commit is contained in:
parent
df0662038c
commit
39f0246deb
|
@ -284,7 +284,7 @@ func (s3a *S3ApiServer) generateUploadID(object string) string {
|
||||||
// Check object name and uploadID when processing multipart uploading
|
// Check object name and uploadID when processing multipart uploading
|
||||||
func (s3a *S3ApiServer) checkUploadId(object string, id string) error {
|
func (s3a *S3ApiServer) checkUploadId(object string, id string) error {
|
||||||
|
|
||||||
hash := s3a.generateUploadID(strings.Split(object, "_")[0])
|
hash := s3a.generateUploadID(object)
|
||||||
|
|
||||||
if !strings.HasPrefix(id, hash) {
|
if !strings.HasPrefix(id, hash) {
|
||||||
glog.Errorf("object %s and uploadID %s are not matched", object, id)
|
glog.Errorf("object %s and uploadID %s are not matched", object, id)
|
||||||
|
|
Loading…
Reference in a new issue