|
|
@ -25,7 +25,7 @@ func (vs *VolumeServer) assignVolumeHandler(w http.ResponseWriter, r *http.Reque |
|
|
|
if r.FormValue("preallocate") != "" { |
|
|
|
preallocate, err = strconv.ParseInt(r.FormValue("preallocate"), 10, 64) |
|
|
|
if err != nil { |
|
|
|
glog.V(0).Infoln("ignoring invalid int64 value for preallocate = %v", r.FormValue("preallocate")) |
|
|
|
glog.V(0).Infof("ignoring invalid int64 value for preallocate = %v", r.FormValue("preallocate")) |
|
|
|
} |
|
|
|
} |
|
|
|
err = vs.store.AddVolume( |
|
|
@ -41,7 +41,7 @@ func (vs *VolumeServer) assignVolumeHandler(w http.ResponseWriter, r *http.Reque |
|
|
|
} else { |
|
|
|
writeJsonError(w, r, http.StatusNotAcceptable, err) |
|
|
|
} |
|
|
|
glog.V(2).Infoln("assign volume = %s, collection = %s , replication = %s, error = %v", |
|
|
|
glog.V(2).Infof("assign volume = %s, collection = %s , replication = %s, error = %v", |
|
|
|
r.FormValue("volume"), r.FormValue("collection"), r.FormValue("replication"), err) |
|
|
|
} |
|
|
|
|
|
|
|