now any data node can accept storing files

files are automatically copied to replicas
This commit is contained in:
Chris Lu
2012-09-20 21:03:40 -07:00
parent 08dcf2f035
commit 77c0de914a
4 changed files with 20 additions and 15 deletions

View File

@@ -71,7 +71,7 @@ func upload(filename string, server string, fid string) (int) {
}
panic(err.Error())
}
ret, _ := operation.Upload(server, fid, filename, fh)
ret, _ := operation.Upload("http://"+server+"/"+fid, filename, fh)
return ret.Size
}