s3: do not resize buf on put to memBuf
This is handled by Pool implementation.
This commit is contained in:
parent
399cf18013
commit
6893ce0bbf
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue