Browse Source
removing set volume location
removing set volume location
display version number add default replication typepull/2/head
Chris Lu
12 years ago
7 changed files with 42 additions and 86 deletions
-
20weed-fs/src/cmd/weed/master.go
-
8weed-fs/src/cmd/weed/version.go
-
17weed-fs/src/cmd/weed/volume.go
-
22weed-fs/src/pkg/admin/storage.go
-
15weed-fs/src/pkg/storage/store.go
-
2weed-fs/src/pkg/storage/volume.go
-
44weed-fs/src/pkg/topology/topology.go
@ -1,22 +0,0 @@ |
|||
package admin |
|||
|
|||
import ( |
|||
"pkg/storage" |
|||
"pkg/topology" |
|||
) |
|||
|
|||
func SendVolumeLocationsList(t *topology.Topology, vid storage.VolumeId) error{ |
|||
// values := make(url.Values)
|
|||
// values.Add("volumeLocationsList", vid.String())
|
|||
// volumeLocations:= []map[string]string{}
|
|||
// list := t.GetVolumeLocations(vid)
|
|||
// m := make(map[string]interface{})
|
|||
// m["Vid"] = vid.String()
|
|||
// for _, dn := range list {
|
|||
// m["Locations"] = append(m["Locations"], dn)
|
|||
// }
|
|||
// for _, dn := range list {
|
|||
// util.Post("http://"+dn.Ip+":"+strconv.Itoa(dn.Port)+"/admin/set_volume_locations_list", values)
|
|||
// }
|
|||
return nil |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue