Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy committed Nov 12, 2024
1 parent ce87b81 commit 302ea26
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/services/s3/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ impl Access for S3Backend {
write_with_cache_control: true,
write_with_content_type: true,
write_with_if_none_match: true,
write_with_if_not_exist: true,
write_with_if_not_exists: true,
write_with_user_metadata: true,

// The min multipart size of S3 is 5 MiB.
Expand Down
2 changes: 1 addition & 1 deletion core/src/types/capability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub struct Capability {
/// If operator supports write with if none match.
pub write_with_if_none_match: bool,
/// If operator supports write with if not exist.
pub write_with_if_not_exist: bool,
pub write_with_if_not_exists: bool,
/// If operator supports write with user defined metadata
pub write_with_user_metadata: bool,
/// write_multi_max_size is the max size that services support in write_multi.
Expand Down
2 changes: 1 addition & 1 deletion core/src/types/operator/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ impl Operator {
///
/// This feature allows to safely write a file only if it does not exist. It is designed
/// to be concurrency-safe, and can be used to a file lock. For storage services that
/// support the `if_not_exist` feature, only one write operation will succeed, while all
/// support the `if_not_exists` feature, only one write operation will succeed, while all
/// other attempts will fail.
///
/// If the file already exists, an error with kind [`ErrorKind::ConditionNotMatch`] will
Expand Down
2 changes: 1 addition & 1 deletion core/tests/behavior/async_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ pub async fn test_write_with_if_none_match(op: Operator) -> Result<()> {

/// Write an file with if_not_exists will get a ConditionNotMatch error if file exists.
pub async fn test_write_with_if_not_exists(op: Operator) -> Result<()> {
if !op.info().full_capability().write_with_if_not_exist {
if !op.info().full_capability().write_with_if_not_exists {
return Ok(());
}

Expand Down

0 comments on commit 302ea26

Please sign in to comment.