1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-03 23:56:41 +02:00

set file handle reader to nil

This commit is contained in:
Chris Lu 2020-12-08 22:48:18 -08:00
parent b52ae9cef8
commit 4211601eab

View file

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