mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
s3: do not resize buf on put to memBuf
This is handled by Pool implementation.
This commit is contained in:
parent
399cf18013
commit
6893ce0bbf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user