Fix corrupted mount reads after changes on fh (#3536)

This commit is contained in:
Patrick Schmidt
2022-08-29 17:27:13 +02:00
committed by GitHub
parent b7a887fea1
commit 00041f6e08

View File

@@ -110,7 +110,8 @@ func (fh *FileHandle) AddChunks(chunks []*filer_pb.FileChunk) {
func (fh *FileHandle) CloseReader() {
if fh.reader != nil {
fh.reader.Close()
_ = fh.reader.Close()
fh.reader = nil
}
}