s3: do not resize buf on put to memBuf

This is handled by Pool implementation.
This commit is contained in:
Michał Matczuk 2020-04-10 14:23:04 +02:00 committed by Nick Craig-Wood
parent 399cf18013
commit 6893ce0bbf

View file

@ -2306,7 +2306,7 @@ func (o *Object) uploadMultipart(ctx context.Context, req *s3.PutObjectInput, si
}) })
// return the memory and token // return the memory and token
memPool.Put(buf[:partSize]) memPool.Put(buf)
tokens.Put() tokens.Put()
if err != nil { if err != nil {