Browse Source

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

pull/3540/head
Patrick Schmidt 2 years ago
committed by GitHub
parent
commit
00041f6e08
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      weed/mount/filehandle.go

3
weed/mount/filehandle.go

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

Loading…
Cancel
Save