adjusting refresh topology writable volumes(not finished yet)

Need to refreshWritableVolumes for each replication type
This commit is contained in:
Chris Lu committed 2012-09-17 01:48:09 -07:00
1 parent 6671f576cb
commit b0e250d437
8 files changed
+44 -23

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ func (vg *VolumeGrowth) GrowByType(repType storage.ReplicationType, topo *topolo
case storage.Copy11:
return vg.GrowByCountAndType(vg.copy3factor, repType, topo)
}
return 0, nil
return 0, errors.New("Unknown Replication Type!")
}
func (vg *VolumeGrowth) GrowByCountAndType(count int, repType storage.ReplicationType, topo *topology.Topology) (counter int, err error) {
counter = 0