Skip to content

Commit

Permalink
some object store should set atomic_write_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Feb 20, 2024
1 parent 8481ea7 commit ef1342f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/object_store/src/object/opendal_engine/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl OpendalObjectStore {
let mut builder = Fs::default();

builder.root(&root);
builder.atomic_write_dir(&root);

let op: Operator = Operator::new(builder)?
.layer(RetryLayer::default())
Expand Down
2 changes: 1 addition & 1 deletion src/object_store/src/object/opendal_engine/hdfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl OpendalObjectStore {
// Set the name node for hdfs.
builder.name_node(&namenode);
builder.root(&root);

builder.atomic_write_dir(&root);
let op: Operator = Operator::new(builder)?
.layer(LoggingLayer::default())
.layer(RetryLayer::default())
Expand Down

0 comments on commit ef1342f

Please sign in to comment.