From 6893ce0bbf81f9d4264f12af3e62f21ae7ba5ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Fri, 10 Apr 2020 14:23:04 +0200 Subject: [PATCH] s3: do not resize buf on put to memBuf This is handled by Pool implementation. --- backend/s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 79934a8d4..40e5cb43d 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -2306,7 +2306,7 @@ func (o *Object) uploadMultipart(ctx context.Context, req *s3.PutObjectInput, si }) // return the memory and token - memPool.Put(buf[:partSize]) + memPool.Put(buf) tokens.Put() if err != nil {