mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
deal with handle not found when flushing
fix https://github.com/seaweedfs/seaweedfs/issues/6645#issuecomment-2737400492
This commit is contained in:
parent
94bd8b39cf
commit
f99a818ad2
@ -54,7 +54,9 @@ import (
|
|||||||
func (wfs *WFS) Flush(cancel <-chan struct{}, in *fuse.FlushIn) fuse.Status {
|
func (wfs *WFS) Flush(cancel <-chan struct{}, in *fuse.FlushIn) fuse.Status {
|
||||||
fh := wfs.GetHandle(FileHandleId(in.Fh))
|
fh := wfs.GetHandle(FileHandleId(in.Fh))
|
||||||
if fh == nil {
|
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)
|
return wfs.doFlush(fh, in.Uid, in.Gid)
|
||||||
|
Loading…
Reference in New Issue
Block a user