This is an automated email from the ASF dual-hosted git repository.
psiace pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new db0e95ed9 fix(services/s3): add md5 to to list of available checksum
algos (#6854)
db0e95ed9 is described below
commit db0e95ed974d03940a2d1aef7db3deb7337a0177
Author: Gabriel Young <[email protected]>
AuthorDate: Tue Dec 2 22:04:47 2025 -0800
fix(services/s3): add md5 to to list of available checksum algos (#6854)
---
core/src/services/s3/backend.rs | 1 +
core/src/services/s3/config.rs | 1 +
2 files changed, 2 insertions(+)
diff --git a/core/src/services/s3/backend.rs b/core/src/services/s3/backend.rs
index 7c0e72000..a45d8ba6a 100644
--- a/core/src/services/s3/backend.rs
+++ b/core/src/services/s3/backend.rs
@@ -560,6 +560,7 @@ impl S3Builder {
///
/// Available options:
/// - "crc32c"
+ /// - "md5"
pub fn checksum_algorithm(mut self, checksum_algorithm: &str) -> Self {
self.config.checksum_algorithm = Some(checksum_algorithm.to_string());
diff --git a/core/src/services/s3/config.rs b/core/src/services/s3/config.rs
index 4ece9ab21..e23c1bce2 100644
--- a/core/src/services/s3/config.rs
+++ b/core/src/services/s3/config.rs
@@ -199,6 +199,7 @@ pub struct S3Config {
///
/// Available options:
/// - "crc32c"
+ /// - "md5"
#[serde(alias = "aws_checksum_algorithm")]
pub checksum_algorithm: Option<String>,
/// Disable write with if match so that opendal will not send write
request with if match headers.