You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 09:06:06 UTC

(opendal-yinyang) branch xuanwo/linux-fuse-foundation updated: test: materialize the pinned handle before locking the file table

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/linux-fuse-foundation
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git


The following commit(s) were added to refs/heads/xuanwo/linux-fuse-foundation by this push:
     new c76c789  test: materialize the pinned handle before locking the file table
c76c789 is described below

commit c76c7891b082006832ce2471a493ec43655bfcf6
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Oct 26 17:06:00 2026 +0800

    test: materialize the pinned handle before locking the file table
    
    Clippy rejects awaiting prepare_open while the temporary file-table
    MutexGuard is alive. Build the open handle first, then insert it.
    
    Co-authored-by: Chojan Shang <ps...@apache.org>
---
 src/fuse/frontend.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/fuse/frontend.rs b/src/fuse/frontend.rs
index 2b4c79b..4cb5af8 100644
--- a/src/fuse/frontend.rs
+++ b/src/fuse/frontend.rs
@@ -968,7 +968,8 @@ mod tests {
             .unwrap();
         let inner = Inner::new(mount, tokio::runtime::Handle::current());
         let fh = inner.next_handle();
-        guard(&inner.files).insert(fh, Arc::new(inner.prepare_open(id).await.unwrap()));
+        let open = inner.prepare_open(id).await.unwrap();
+        guard(&inner.files).insert(fh, Arc::new(open));
 
         let other = temp.path().join("other");
         let writer = Runtime::open(authority.clone(), &other).await.unwrap();