s3storeL Add prefix to upload concat source (#767)

This commit is contained in:
Roberto Villalba 2022-07-16 08:52:53 -04:00 committed by GitHub
parent 15e745d5de
commit e423e30135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ func (upload *s3Upload) concatUsingMultipart(ctx context.Context, partialUploads
// Part numbers must be in the range of 1 to 10000, inclusive. Since // Part numbers must be in the range of 1 to 10000, inclusive. Since
// slice indexes start at 0, we add 1 to ensure that i >= 1. // slice indexes start at 0, we add 1 to ensure that i >= 1.
PartNumber: aws.Int64(int64(i + 1)), PartNumber: aws.Int64(int64(i + 1)),
CopySource: aws.String(store.Bucket + "/" + partialId), CopySource: aws.String(store.Bucket + "/" + *store.keyWithPrefix(partialId)),
}) })
if err != nil { if err != nil {
errs = append(errs, err) errs = append(errs, err)