mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-31 18:20:42 +08: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 {
|
||||
closer.Close()
|
||||
}
|
||||
fh.f.reader = nil
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user