Skip to content

Commit

Permalink
Switch from if-none-match to if-not-exists in exclusive write routine
Browse files Browse the repository at this point in the history
This is because there is an opendal check now with the former being forbiden for S3 now.
  • Loading branch information
gruuya committed Jan 3, 2025
1 parent a61f889 commit 13c5cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iceberg/src/io/file_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ impl OutputFile {
pub async fn write_exclusive(&self, bs: Bytes) -> crate::Result<()> {
self.op
.write_with(&self.path[self.relative_path_pos..], bs)
.if_none_match("*")
.if_not_exists(true)
.await?;
Ok(())
}
Expand Down

0 comments on commit 13c5cc7

Please sign in to comment.