aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs_write.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2021-05-24 12:28:19 +0500
committerGitHub <noreply@github.com>2021-05-24 12:28:19 +0500
commit84dce32a5781268f6dbd0101e3bab65c04e0a1c7 (patch)
tree5eb4f327c53e2525d372d19bce62984539c62e71 /weed/filesys/wfs_write.go
parentbb4263352251fb7ad02cfeb7f340b5b961d0d55a (diff)
parent359a08ecbad0b010811af367c2a2677fadfb53ae (diff)
downloadseaweedfs-84dce32a5781268f6dbd0101e3bab65c04e0a1c7.tar.xz
seaweedfs-84dce32a5781268f6dbd0101e3bab65c04e0a1c7.zip
Merge branch 'master' into head_check_all_chunks
Diffstat (limited to 'weed/filesys/wfs_write.go')
-rw-r--r--weed/filesys/wfs_write.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs_write.go b/weed/filesys/wfs_write.go
index 730578202..42c13cfd0 100644
--- a/weed/filesys/wfs_write.go
+++ b/weed/filesys/wfs_write.go
@@ -56,7 +56,7 @@ func (wfs *WFS) saveDataAsChunk(fullPath util.FullPath, writeOnly bool) filer.Sa
fileUrl := fmt.Sprintf("http://%s/%s", host, fileId)
if wfs.option.VolumeServerAccess == "filerProxy" {
- fileUrl = fmt.Sprintf("http://%s/?proxyChunkId=%s", wfs.option.FilerAddress, fileId)
+ fileUrl = fmt.Sprintf("http://%s/?proxyChunkId=%s", wfs.getCurrentFiler(), fileId)
}
uploadResult, err, data := operation.Upload(fileUrl, filename, wfs.option.Cipher, reader, false, "", nil, auth)
if err != nil {