s3: Fix --s3-chunk-size which was always using the minimum - fixes #2345

This commit is contained in:
Nick Craig-Wood 2018-06-10 12:20:13 +01:00
parent 4e8e5fed7d
commit 017297af70

View file

@ -1356,7 +1356,6 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio
u.LeavePartsOnError = false u.LeavePartsOnError = false
u.S3 = o.fs.c u.S3 = o.fs.c
u.PartSize = int64(s3ChunkSize) u.PartSize = int64(s3ChunkSize)
u.PartSize = s3manager.MinUploadPartSize
if size == -1 { if size == -1 {
// Make parts as small as possible while still being able to upload to the // Make parts as small as possible while still being able to upload to the