Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Feb 20, 2024
1 parent ad2886a commit 515e40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/object_store/src/object/opendal_engine/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ impl OpendalObjectStore {
let mut builder = Fs::default();

builder.root(&root);
let atomic_write_dir = format!("{}{}", root, ATOMIC_WRITE_DIR);
builder.atomic_write_dir(&atomic_write_dir);
builder.atomic_write_dir(ATOMIC_WRITE_DIR);

let op: Operator = Operator::new(builder)?
.layer(RetryLayer::default())
Expand Down
3 changes: 1 addition & 2 deletions src/object_store/src/object/opendal_engine/webhdfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ impl OpendalObjectStore {
// NOTE: the root must be absolute path.
builder.root(&root);

let atomic_write_dir = format!("{}{}", root, ATOMIC_WRITE_DIR);
builder.atomic_write_dir(&atomic_write_dir);
builder.atomic_write_dir(ATOMIC_WRITE_DIR);
let op: Operator = Operator::new(builder)?
.layer(LoggingLayer::default())
.layer(RetryLayer::default())
Expand Down

0 comments on commit 515e40a

Please sign in to comment.