From f5677bf8532249b342bd145f2029ac0f586b9e87 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Mon, 20 Nov 2023 10:09:01 +0800 Subject: [PATCH] add comment --- object_store/src/local.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/object_store/src/local.rs b/object_store/src/local.rs index 927101b61109..71b96f058c79 100644 --- a/object_store/src/local.rs +++ b/object_store/src/local.rs @@ -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,