mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
Preallocate (safe) slices when we know the size (#10459)
This commit is contained in:
1 parent
b1c99e88ac
commit
34859c6d4b
7 files changed
+42
-46
No files matched your search
@@ -2557,7 +2557,7 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite
|
||||
}
|
||||
|
||||
// Complete parts.
|
||||
var completeParts []CompletePart
|
||||
completeParts := make([]CompletePart, 0, len(complMultipartUpload.Parts))
|
||||
for _, part := range complMultipartUpload.Parts {
|
||||
part.ETag = canonicalizeETag(part.ETag)
|
||||
if isEncrypted {
|
||||
|
||||
Reference in new issue
Block a user