mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:11:11 +08:00
s3: ensure we can set upload cutoff that we use for Rclone provider
This is a workaround to make the new multipart upload integration tests pass.
This commit is contained in:
parent
d8855b21eb
commit
4eed3ae99a
|
@ -3004,7 +3004,9 @@ func checkUploadCutoff(cs fs.SizeSuffix) error {
|
|||
}
|
||||
|
||||
func (f *Fs) setUploadCutoff(cs fs.SizeSuffix) (old fs.SizeSuffix, err error) {
|
||||
err = checkUploadCutoff(cs)
|
||||
if f.opt.Provider != "Rclone" {
|
||||
err = checkUploadCutoff(cs)
|
||||
}
|
||||
if err == nil {
|
||||
old, f.opt.UploadCutoff = f.opt.UploadCutoff, cs
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user