mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-06 17:17:25 +02:00
set file handle reader to nil
This commit is contained in:
parent
b52ae9cef8
commit
4211601eab
|
@ -205,6 +205,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
|
||||||
if closer, ok := fh.f.reader.(io.Closer); ok {
|
if closer, ok := fh.f.reader.(io.Closer); ok {
|
||||||
closer.Close()
|
closer.Close()
|
||||||
}
|
}
|
||||||
|
fh.f.reader = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue