diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-24 19:03:02 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-24 19:03:02 -0800 |
| commit | 17f7c1c43f8adc1d1e4d795f23cdf60aa0e57c95 (patch) | |
| tree | 16817aa710170550530543e7b1c0f0effd2b2400 /weed/filesys/file.go | |
| parent | 9bcb28a3eabcb2c869afc52da6b0341e8e2d8427 (diff) | |
| parent | 00707ec00fb8016ac9ef8858a01a9784a6aee1a0 (diff) | |
| download | seaweedfs-17f7c1c43f8adc1d1e4d795f23cdf60aa0e57c95.tar.xz seaweedfs-17f7c1c43f8adc1d1e4d795f23cdf60aa0e57c95.zip | |
Merge branch 'mount_from_outside_cluster'
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index a2b6660d8..a8d6dac29 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -147,9 +147,8 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f } } file.entry.Chunks = chunks - file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(filer.LookupFn(file.wfs), chunks) + file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(file.wfs.LookupFn(), chunks) file.reader = nil - file.wfs.deleteFileChunks(truncatedChunks) } file.entry.Attributes.FileSize = req.Size file.dirtyMetadata = true @@ -329,7 +328,7 @@ func (file *File) addChunks(chunks []*filer_pb.FileChunk) { func (file *File) setEntry(entry *filer_pb.Entry) { file.entry = entry - file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(filer.LookupFn(file.wfs), entry.Chunks) + file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(file.wfs.LookupFn(), entry.Chunks) file.reader = nil } |
