mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 08:20:42 +01:00
fix when volume growth are partial successful in automatic mode
This commit is contained in:
1 parent
3ae2eabf09
commit
63ebafa113
2 files changed
+21
-9
No files matched your search
+1
-1
@@ -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