Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinLin666 committed Nov 20, 2023
1 parent f25ace3 commit f5677bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions object_store/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ impl ObjectStore for LocalFileSystem {
e_tag = Some(get_etag(&metadata));
match opts.mode {
PutMode::Overwrite => {
// For some fuse types of file systems, the file must be closed first
// to trigger the upload operation, and then renamed, such as Blobfuse
std::mem::drop(file);
match std::fs::rename(&staging_path, &path) {
Ok(_) => None,
Expand Down

0 comments on commit f5677bf

Please sign in to comment.