From 0b17c18605991ee1c2eca555acfc41b21ae7f01d Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Thu, 15 Sep 2022 11:19:31 +0200 Subject: [PATCH] Fix max part check First part is part 1, so 10K parts would be 10001. Fixes #228 --- pkg/bench/multipart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bench/multipart.go b/pkg/bench/multipart.go index cd27f4e1..c8d47044 100644 --- a/pkg/bench/multipart.go +++ b/pkg/bench/multipart.go @@ -71,7 +71,7 @@ func (g *Multipart) InitOnce(ctx context.Context) error { // and upload a number of objects. func (g *Multipart) Prepare(ctx context.Context) error { g.PartStart += g.CreateParts * g.ClientIdx - if g.PartStart+g.CreateParts > 10000 { + if g.PartStart+g.CreateParts > 10001 { return errors.New("10000 part limit exceeded") } console.Println("")