diff options
| author | Tamás Gulácsi <tgulacsi78+waterhouse@gmail.com> | 2013-01-13 17:07:38 +0100 |
|---|---|---|
| committer | Tamás Gulácsi <tgulacsi78+waterhouse@gmail.com> | 2013-01-13 17:07:38 +0100 |
| commit | dd685fdd8d8ac6d28dce0d25b72115e3315a30a8 (patch) | |
| tree | a6036a2cad8e389bc47b7d769fb47dae8824b81a /weed-fs/src/cmd | |
| parent | bf0ccf346198a65e0321b3cedfb25ef5dad73e2a (diff) | |
| download | seaweedfs-dd685fdd8d8ac6d28dce0d25b72115e3315a30a8.tar.xz seaweedfs-dd685fdd8d8ac6d28dce0d25b72115e3315a30a8.zip | |
add Frozen attribute to VolumeInfo
Diffstat (limited to 'weed-fs/src/cmd')
| -rw-r--r-- | weed-fs/src/cmd/weed/master.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/weed-fs/src/cmd/weed/master.go b/weed-fs/src/cmd/weed/master.go index c60974a67..151ae31fc 100644 --- a/weed-fs/src/cmd/weed/master.go +++ b/weed-fs/src/cmd/weed/master.go @@ -107,8 +107,14 @@ func dirJoinHandler(w http.ResponseWriter, r *http.Request) { if ip == "" { ip = r.RemoteAddr[0:strings.Index(r.RemoteAddr, ":")] } - port, _ := strconv.Atoi(r.FormValue("port")) - maxVolumeCount, _ := strconv.Atoi(r.FormValue("maxVolumeCount")) + port, err := strconv.Atoi(r.FormValue("port")) + if err != nil { + log.Printf("ERROR bad port number %s: %s", r.FormValue("port"), err) + } + maxVolumeCount, err := strconv.Atoi(r.FormValue("maxVolumeCount")) + if err != nil { + log.Printf("ERROR bad maxVolumeCount %s: %s", r.FormValue("maxVolumeCount"), err) + } s := r.RemoteAddr[0:strings.Index(r.RemoteAddr, ":")+1] + r.FormValue("port") publicUrl := r.FormValue("publicUrl") volumes := new([]storage.VolumeInfo) |
