diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-02-02 10:16:50 -0800 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-02-02 10:16:50 -0800 |
| commit | cc724305b665bb13a592334cf4739c4498df9d72 (patch) | |
| tree | 2c648533e945d238f2e4e681068c1e57807e917c /go/operation/submit.go | |
| parent | 29a325626fc8b3671e4006ab7f15a13b99246f16 (diff) | |
| download | seaweedfs-cc724305b665bb13a592334cf4739c4498df9d72.tar.xz seaweedfs-cc724305b665bb13a592334cf4739c4498df9d72.zip | |
Using Url instead of PublicUrl for volume server
Originally there are only url(ip + port), and publicUrl. Because ip was
used to listen for http service, it has less flexibility and volume
server has to be accessed via publicUrl.
Recently we added ip.bind, for binding http service.
With this change, url can be used to connect to volume servers. And
publicUrl becomes a free style piece of url information, it does not
even need to be unique.
Diffstat (limited to 'go/operation/submit.go')
| -rw-r--r-- | go/operation/submit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/operation/submit.go b/go/operation/submit.go index 62db46617..3ab6d78d9 100644 --- a/go/operation/submit.go +++ b/go/operation/submit.go @@ -137,7 +137,7 @@ func upload_one_chunk(filename string, reader io.Reader, master, replication str if err != nil { return "", 0, err } - fileUrl, fid := "http://"+ret.PublicUrl+"/"+ret.Fid, ret.Fid + fileUrl, fid := "http://"+ret.Url+"/"+ret.Fid, ret.Fid glog.V(4).Info("Uploading part ", filename, " to ", fileUrl, "...") uploadResult, uploadError := Upload(fileUrl, filename, reader, false, "application/octet-stream") if uploadError != nil { |
