diff --git a/pkg/common/db/s3/cont/controller.go b/pkg/common/db/s3/cont/controller.go index 2d9d7d32d..2db1b800f 100644 --- a/pkg/common/db/s3/cont/controller.go +++ b/pkg/common/db/s3/cont/controller.go @@ -144,7 +144,7 @@ func (c *Controller) InitiateUpload(ctx context.Context, hash string, size int64 } var authSign *s3.AuthSignResult if maxParts > 0 { - partNumbers := make([]int, partNumber) + partNumbers := make([]int, maxParts) for i := 0; i < maxParts; i++ { partNumbers[i] = i + 1 }