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/wfs.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/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 236ecdacb..cd14e8032 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -3,8 +3,6 @@ package filesys import ( "context" "fmt" - "github.com/chrislusf/seaweedfs/weed/filer" - "github.com/chrislusf/seaweedfs/weed/wdclient" "math" "os" "path" @@ -26,7 +24,6 @@ import ( ) type Option struct { - FilerAddress string FilerGrpcAddress string GrpcDialOption grpc.DialOption FilerMountRootPath string @@ -240,13 +237,3 @@ func (wfs *WFS) mapPbIdFromLocalToFiler(entry *filer_pb.Entry) { } entry.Attributes.Uid, entry.Attributes.Gid = wfs.option.UidGidMapper.LocalToFiler(entry.Attributes.Uid, entry.Attributes.Gid) } - -func (wfs *WFS) LookupFn() wdclient.LookupFileIdFunctionType { - if wfs.option.OutsideContainerClusterMode { - return func(fileId string) (targetUrls []string, err error) { - return []string{"http://" + wfs.option.FilerAddress + "/?proxyChunkId=" + fileId}, nil - } - } - return filer.LookupFn(wfs) - -} |
