From 194a94cb8ef918a6e42e538e91e189e548f146af Mon Sep 17 00:00:00 2001 From: chao <48119764+withchao@users.noreply.github.com> Date: Wed, 8 Nov 2023 03:29:28 -0600 Subject: [PATCH] fix: initiateUpload sign list number (#1358) * optimize scheduled deletion * optimize scheduled deletion * optimize scheduled deletion * optimize scheduled deletion * minio cache * fix: conflicts * feat: minio cache * feat: cache optimize * feat: cache optimize * feat: cache optimize * feat: cache optimize * feat: cache optimize * fix: initiateUpload sign list number --- pkg/common/db/s3/cont/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/s3/cont/controller.go b/pkg/common/db/s3/cont/controller.go index 2d9d7d32dd..2db1b800fd 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 }