diff options
| author | chrislu <chris.lu@gmail.com> | 2025-03-19 21:02:26 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-03-19 21:02:26 -0700 |
| commit | f99a818ad2253fdb3fa74d2bb72f93b68db5c85a (patch) | |
| tree | d99a617f81a8b436e9d36940d83f36dbb1864a6a | |
| parent | 94bd8b39cf8bca8d2c1f2166c894006bcb270919 (diff) | |
| download | seaweedfs-f99a818ad2253fdb3fa74d2bb72f93b68db5c85a.tar.xz seaweedfs-f99a818ad2253fdb3fa74d2bb72f93b68db5c85a.zip | |
deal with handle not found when flushing
fix https://github.com/seaweedfs/seaweedfs/issues/6645#issuecomment-2737400492
| -rw-r--r-- | weed/mount/weedfs_file_sync.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/mount/weedfs_file_sync.go b/weed/mount/weedfs_file_sync.go index 11ce1d3c4..e13ab198d 100644 --- a/weed/mount/weedfs_file_sync.go +++ b/weed/mount/weedfs_file_sync.go @@ -54,7 +54,9 @@ import ( func (wfs *WFS) Flush(cancel <-chan struct{}, in *fuse.FlushIn) fuse.Status { fh := wfs.GetHandle(FileHandleId(in.Fh)) if fh == nil { - return fuse.ENOENT + // If handle is not found, it might have been already released + // This is not an error condition for FLUSH + return fuse.OK } return wfs.doFlush(fh, in.Uid, in.Gid) |
