|
|
@ -17,7 +17,7 @@ func AllocateVolume(dn *topology.DataNode, vid storage.VolumeId, collection stri |
|
|
|
values := make(url.Values) |
|
|
|
values.Add("volume", vid.String()) |
|
|
|
values.Add("collection", collection) |
|
|
|
values.Add("replicationType", repType.String()) |
|
|
|
values.Add("replication", repType.String()) |
|
|
|
jsonBlob, err := util.Post("http://"+dn.PublicUrl+"/admin/assign_volume", values) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|