fix: make complete multipart uploads faster encrypted/compressed backends (#15375)

- Only fetch the parts we need and abort as soon as one is missing.
- Only fetch the number of parts requested by "ListObjectParts".
This commit is contained in:
Klaus Post
2022-07-21 16:47:58 -07:00
committed by GitHub
parent f4d5c861f3
commit 69bf39f42e
5 changed files with 72 additions and 32 deletions
+1
View File
@@ -285,6 +285,7 @@ type ReadMultipleReq struct {
MaxSize int64 // Return error if size is exceed.
MetadataOnly bool // Read as XL meta and truncate data.
AbortOn404 bool // Stop reading after first file not found.
MaxResults int // Stop after this many successful results. <= 0 means all.
}
// ReadMultipleResp contains a single response from a ReadMultipleReq.