Browse Source

return false if not found

fix https://github.com/chrislusf/seaweedfs/issues/3011
pull/3020/head
chrislu 3 years ago
parent
commit
f17cd0d5cd
  1. 3
      weed/s3api/filer_multipart.go

3
weed/s3api/filer_multipart.go

@ -178,6 +178,9 @@ func findByPartNumber(fileName string, parts []CompletedPart) (etag string, foun
x := sort.Search(len(parts), func(i int) bool {
return parts[i].PartNumber >= partNumber
})
if x >= len(parts) {
return
}
if parts[x].PartNumber != partNumber {
return
}

Loading…
Cancel
Save