refactoring code

reusable code by go clients
This commit is contained in:
Chris Lu
2013-08-13 23:26:51 -07:00
parent f7c1a15ad1
commit d5e7c1de0a
5 changed files with 145 additions and 104 deletions

View File

@@ -257,7 +257,7 @@ func submitForClientHandler(w http.ResponseWriter, r *http.Request, masterUrl st
}
debug("assigning file id for", fname)
assignResult, ae := Assign(masterUrl, 1)
assignResult, ae := operation.Assign(masterUrl, 1, r.FormValue("replication"))
if ae != nil {
writeJsonError(w, r, ae)
return