diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-24 03:15:19 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-24 03:15:19 -0800 |
| commit | 6ca10725b81fd20d8bce2f582f1b93b047d0a4c3 (patch) | |
| tree | 21e481993e3188a8a7680caf4cc3fde34e61717b /weed/filesys/file.go | |
| parent | 096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec (diff) | |
| download | seaweedfs-6ca10725b81fd20d8bce2f582f1b93b047d0a4c3.tar.xz seaweedfs-6ca10725b81fd20d8bce2f582f1b93b047d0a4c3.zip | |
Revert "mount: when outside cluster network, use filer as proxy to access volume servers"
This reverts commit 096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec.
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index 8054435b1..a2b6660d8 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -147,7 +147,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f } } file.entry.Chunks = chunks - file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(file.wfs.LookupFn(), chunks) + file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(filer.LookupFn(file.wfs), chunks) file.reader = nil file.wfs.deleteFileChunks(truncatedChunks) } @@ -329,7 +329,7 @@ func (file *File) addChunks(chunks []*filer_pb.FileChunk) { func (file *File) setEntry(entry *filer_pb.Entry) { file.entry = entry - file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(file.wfs.LookupFn(), entry.Chunks) + file.entryViewCache, _ = filer.NonOverlappingVisibleIntervals(filer.LookupFn(file.wfs), entry.Chunks) file.reader = nil } |
