Browse Source

fix format error

pull/747/head
Chris Lu 6 years ago
parent
commit
439e88b5a6
  1. 6
      weed/s3api/filer_multipart.go

6
weed/s3api/filer_multipart.go

@ -44,7 +44,7 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa
entries, err := s3a.list(uploadDirectory, "", "", false, 0) entries, err := s3a.list(uploadDirectory, "", "", false, 0)
if err != nil { if err != nil {
glog.Errorf("completeMultipartUpload %s *s error: %v", *input.Bucket, *input.UploadId, err)
glog.Errorf("completeMultipartUpload %s %s error: %v", *input.Bucket, *input.UploadId, err)
return nil, ErrNoSuchUpload return nil, ErrNoSuchUpload
} }
@ -148,7 +148,7 @@ func (s3a *S3ApiServer) listObjectParts(input *s3.ListPartsInput) (output *s3.Li
entries, err := s3a.list(s3a.genUploadsFolder(*input.Bucket)+"/"+*input.UploadId, entries, err := s3a.list(s3a.genUploadsFolder(*input.Bucket)+"/"+*input.UploadId,
"", fmt.Sprintf("%04d.part", *input.PartNumberMarker), false, int(*input.MaxParts)) "", fmt.Sprintf("%04d.part", *input.PartNumberMarker), false, int(*input.MaxParts))
if err != nil { if err != nil {
glog.Errorf("listObjectParts %s *s error: %v", *input.Bucket, *input.UploadId, err)
glog.Errorf("listObjectParts %s %s error: %v", *input.Bucket, *input.UploadId, err)
return nil, ErrNoSuchUpload return nil, ErrNoSuchUpload
} }
@ -157,7 +157,7 @@ func (s3a *S3ApiServer) listObjectParts(input *s3.ListPartsInput) (output *s3.Li
partNumberString := entry.Name[:len(entry.Name)-len(".part")] partNumberString := entry.Name[:len(entry.Name)-len(".part")]
partNumber, err := strconv.Atoi(partNumberString) partNumber, err := strconv.Atoi(partNumberString)
if err != nil { if err != nil {
glog.Errorf("listObjectParts %s *s parse %s: %v", *input.Bucket, *input.UploadId, entry.Name, err)
glog.Errorf("listObjectParts %s %s parse %s: %v", *input.Bucket, *input.UploadId, entry.Name, err)
continue continue
} }
output.Parts = append(output.Parts, &s3.Part{ output.Parts = append(output.Parts, &s3.Part{

Loading…
Cancel
Save