mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 06:16:51 +08:00
fix when volume growth are partial successful in automatic mode
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user