fix when volume growth are partial successful in automatic mode

This commit is contained in:
Chris Lu committed 2013-07-24 10:31:51 -07:00
1 parent 3ae2eabf09
commit 63ebafa113
2 files changed
+21 -9

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ func dirAssignHandler(w http.ResponseWriter, r *http.Request) {
writeJsonQuiet(w, r, map[string]string{"error": "No free volumes left!"})
return
} else {
if _, err = vg.GrowByType(rt, dataCenter, topo); err != nil {
if _, err = vg.AutomaticGrowByType(rt, dataCenter, topo); err != nil {
writeJsonQuiet(w, r, map[string]string{"error": "Cannot grow volume group! " + err.Error()})
return
}