diff options
| author | Chris Lu <chris.lu@gmail.com> | 2012-08-23 19:10:55 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2012-08-23 19:10:55 -0700 |
| commit | 5caa7bbdc94956d449b42fd542fe3e683b3e5249 (patch) | |
| tree | 6cbc9c8fc1eb590bd2b3b76ef1719948dbd93d42 /weed-fs/src/cmd | |
| parent | 10c2a4540ef8e9971e06c1a9618acf7fa8d31153 (diff) | |
| download | seaweedfs-5caa7bbdc94956d449b42fd542fe3e683b3e5249.tar.xz seaweedfs-5caa7bbdc94956d449b42fd542fe3e683b3e5249.zip | |
refactoring only
Diffstat (limited to 'weed-fs/src/cmd')
| -rw-r--r-- | weed-fs/src/cmd/weed/master.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed-fs/src/cmd/weed/master.go b/weed-fs/src/cmd/weed/master.go index e6af3809a..74429d360 100644 --- a/weed-fs/src/cmd/weed/master.go +++ b/weed-fs/src/cmd/weed/master.go @@ -5,7 +5,7 @@ import ( "encoding/json" "log" "net/http" - "pkg/storage" + "pkg/topology" "strconv" "strings" ) @@ -60,7 +60,7 @@ func dirAssignHandler(w http.ResponseWriter, r *http.Request) { func dirJoinHandler(w http.ResponseWriter, r *http.Request) { s := r.RemoteAddr[0:strings.Index(r.RemoteAddr, ":")+1] + r.FormValue("port") publicUrl := r.FormValue("publicUrl") - volumes := new([]storage.VolumeInfo) + volumes := new([]topology.VolumeInfo) json.Unmarshal([]byte(r.FormValue("volumes")), volumes) if *IsDebug { log.Println(s, "volumes", r.FormValue("volumes")) |
