mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-10 22:08:48 +01:00
set file handle reader to nil
This commit is contained in:
1 parent
b52ae9cef8
commit
4211601eab
1 file changed
+1
@@ -205,6 +205,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
|
||||
if closer, ok := fh.f.reader.(io.Closer); ok {
|
||||
closer.Close()
|
||||
}
|
||||
fh.f.reader = nil
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user