diff --git a/core/src/services/cos/backend.rs b/core/src/services/cos/backend.rs index e01da22cbd4..be19e08717d 100644 --- a/core/src/services/cos/backend.rs +++ b/core/src/services/cos/backend.rs @@ -277,7 +277,11 @@ impl Accessor for CosBackend { // The max multipart size of COS is 5 GiB. // // ref: - write_multi_max_size: Some(5 * 1024 * 1024 * 1024), + write_multi_max_size: if cfg!(target_pointer_width = "64") { + Some(5 * 1024 * 1024 * 1024) + } else { + Some(usize::MAX) + }, delete: true, create_dir: true, diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs index 3d6281e863b..cff7c254f4e 100644 --- a/core/src/services/obs/backend.rs +++ b/core/src/services/obs/backend.rs @@ -283,7 +283,11 @@ impl Accessor for ObsBackend { // The max multipart size of OBS is 5 GiB. // // ref: - write_multi_max_size: Some(5 * 1024 * 1024 * 1024), + write_multi_max_size: if cfg!(target_pointer_width = "64") { + Some(5 * 1024 * 1024 * 1024) + } else { + Some(usize::MAX) + }, delete: true, create_dir: true, diff --git a/core/src/services/oss/backend.rs b/core/src/services/oss/backend.rs index 1e32d8ea04e..cc4dddbaefd 100644 --- a/core/src/services/oss/backend.rs +++ b/core/src/services/oss/backend.rs @@ -410,7 +410,11 @@ impl Accessor for OssBackend { // The max multipart size of OSS is 5 GiB. // // ref: - write_multi_max_size: Some(5 * 1024 * 1024 * 1024), + write_multi_max_size: if cfg!(target_pointer_width = "64") { + Some(5 * 1024 * 1024 * 1024) + } else { + Some(usize::MAX) + }, delete: true, create_dir: true, diff --git a/core/src/services/s3/backend.rs b/core/src/services/s3/backend.rs index 88dea3af948..82e420421df 100644 --- a/core/src/services/s3/backend.rs +++ b/core/src/services/s3/backend.rs @@ -923,7 +923,11 @@ impl Accessor for S3Backend { // The max multipart size of S3 is 5 GiB. // // ref: - write_multi_max_size: Some(5 * 1024 * 1024 * 1024), + write_multi_max_size: if cfg!(target_pointer_width = "64") { + Some(5 * 1024 * 1024 * 1024) + } else { + Some(usize::MAX) + }, create_dir: true, delete: true,