Merge pull request #3847 from aaronlehmann/s3-pagination-loop

Fix S3 multipart upload pagination loop condition
This commit is contained in:
Milos Gajdos 2023-02-23 07:28:52 +00:00 committed by GitHub
commit e5d5810851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -690,7 +690,7 @@ func (d *driver) Writer(ctx context.Context, path string, appendParam bool) (sto
return nil, parseError(path, err)
}
allParts = append(allParts, partsList.Parts...)
for *resp.IsTruncated {
for *partsList.IsTruncated {
partsList, err = d.S3.ListParts(&s3.ListPartsInput{
Bucket: aws.String(d.Bucket),
Key: aws.String(key),