mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01: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) {
|
func (f *Fs) setUploadCutoff(cs fs.SizeSuffix) (old fs.SizeSuffix, err error) {
|
||||||
|
if f.opt.Provider != "Rclone" {
|
||||||
err = checkUploadCutoff(cs)
|
err = checkUploadCutoff(cs)
|
||||||
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
old, f.opt.UploadCutoff = f.opt.UploadCutoff, cs
|
old, f.opt.UploadCutoff = f.opt.UploadCutoff, cs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user