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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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