deal with handle not found when flushing

fix https://github.com/seaweedfs/seaweedfs/issues/6645#issuecomment-2737400492
This commit is contained in:
chrislu 2025-03-19 21:02:26 -07:00
parent 94bd8b39cf
commit f99a818ad2

View File

@ -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)