aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs_write.go
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/filesys/wfs_write.go
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/filesys/wfs_write.go')
-rw-r--r--weed/filesys/wfs_write.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/weed/filesys/wfs_write.go b/weed/filesys/wfs_write.go
index dfe6e57a6..83e40e7f5 100644
--- a/weed/filesys/wfs_write.go
+++ b/weed/filesys/wfs_write.go
@@ -44,7 +44,7 @@ func (wfs *WFS) saveDataAsChunk(fullPath util.FullPath) filer.SaveDataAsChunkFun
Url: resp.Url,
PublicUrl: resp.PublicUrl,
}
- host = loc.Url
+ host = wfs.AdjustedUrl(loc)
collection, replication = resp.Collection, resp.Replication
return nil
@@ -53,9 +53,6 @@ func (wfs *WFS) saveDataAsChunk(fullPath util.FullPath) filer.SaveDataAsChunkFun
}
fileUrl := fmt.Sprintf("http://%s/%s", host, fileId)
- if wfs.option.OutsideContainerClusterMode {
- fileUrl = fmt.Sprintf("http://%s/?proxyChunkId=%s", wfs.option.FilerAddress, fileId)
- }
uploadResult, err, data := operation.Upload(fileUrl, filename, wfs.option.Cipher, reader, false, "", nil, auth)
if err != nil {
glog.V(0).Infof("upload data %v to %s: %v", filename, fileUrl, err)