aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLHHDZ <changlin.shi@ly.com>2022-11-11 20:53:53 +0800
committerGitHub <noreply@github.com>2022-11-11 04:53:53 -0800
commit39f0246deb8edd4ac44f6fe7eb4afe55c2d2d923 (patch)
treefc0a7392c0529d8a4f4efa88a6a0a60c66c8e45e
parentdf0662038c99a4d0c883464371272d1ab7ec19e6 (diff)
downloadseaweedfs-39f0246deb8edd4ac44f6fe7eb4afe55c2d2d923.tar.xz
seaweedfs-39f0246deb8edd4ac44f6fe7eb4afe55c2d2d923.zip
fix 'NoSuchUpload' when upload part (#3968)
-rw-r--r--weed/s3api/s3api_object_multipart_handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_object_multipart_handlers.go b/weed/s3api/s3api_object_multipart_handlers.go
index d30e65ad9..b08a1e797 100644
--- a/weed/s3api/s3api_object_multipart_handlers.go
+++ b/weed/s3api/s3api_object_multipart_handlers.go
@@ -284,7 +284,7 @@ func (s3a *S3ApiServer) generateUploadID(object string) string {
// Check object name and uploadID when processing multipart uploading
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) {
glog.Errorf("object %s and uploadID %s are not matched", object, id)