aboutsummaryrefslogtreecommitdiff
path: root/weed/replication
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-24 03:15:19 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-24 03:15:19 -0800
commit6ca10725b81fd20d8bce2f582f1b93b047d0a4c3 (patch)
tree21e481993e3188a8a7680caf4cc3fde34e61717b /weed/replication
parent096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec (diff)
downloadseaweedfs-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/replication')
-rw-r--r--weed/replication/sink/filersink/fetch_write.go3
-rw-r--r--weed/replication/source/filer_source.go4
2 files changed, 7 insertions, 0 deletions
diff --git a/weed/replication/sink/filersink/fetch_write.go b/weed/replication/sink/filersink/fetch_write.go
index 544b84995..b062adcfe 100644
--- a/weed/replication/sink/filersink/fetch_write.go
+++ b/weed/replication/sink/filersink/fetch_write.go
@@ -128,3 +128,6 @@ func (fs *FilerSink) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) error)
}, fs.grpcAddress, fs.grpcDialOption)
}
+func (fs *FilerSink) AdjustedUrl(location *filer_pb.Location) string {
+ return location.Url
+}
diff --git a/weed/replication/source/filer_source.go b/weed/replication/source/filer_source.go
index eff1da8dc..3982360b0 100644
--- a/weed/replication/source/filer_source.go
+++ b/weed/replication/source/filer_source.go
@@ -124,6 +124,10 @@ func (fs *FilerSource) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) erro
}
+func (fs *FilerSource) AdjustedUrl(location *filer_pb.Location) string {
+ return location.Url
+}
+
func volumeId(fileId string) string {
lastCommaIndex := strings.LastIndex(fileId, ",")
if lastCommaIndex > 0 {