forked from TrueCloudLab/rclone
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
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||||
err = checkUploadCutoff(cs)
|
if f.opt.Provider != "Rclone" {
|
||||||
|
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…
Add table
Reference in a new issue