aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Schmidt <patrick.schmidt@innogames.com>2022-08-29 17:27:13 +0200
committerGitHub <noreply@github.com>2022-08-29 08:27:13 -0700
commit00041f6e086dad3d3981a52106975058ca21b625 (patch)
treebac900868de2fe27b770bf7b3ee07732bd1ee137
parentb7a887fea16ecef7832a60818bf9b30e6600a258 (diff)
downloadseaweedfs-00041f6e086dad3d3981a52106975058ca21b625.tar.xz
seaweedfs-00041f6e086dad3d3981a52106975058ca21b625.zip
Fix corrupted mount reads after changes on fh (#3536)
-rw-r--r--weed/mount/filehandle.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/mount/filehandle.go b/weed/mount/filehandle.go
index 4595764ee..b2459d9e2 100644
--- a/weed/mount/filehandle.go
+++ b/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
}
}