chenwanli
2019-02-25 10:47:41 +08:00
parent 0a106c1757
commit 0bc3cdd26a
2 changed files with 9 additions and 4 deletions

View File

@@ -82,7 +82,10 @@ func (vg *VolumeGrowth) findAndGrow(grpcDialOption grpc.DialOption, topo *Topolo
if e != nil {
return 0, e
}
vid := topo.NextVolumeId()
vid, raftErr := topo.NextVolumeId()
if raftErr != nil {
return 0, raftErr
}
err := vg.grow(grpcDialOption, topo, vid, option, servers...)
return len(servers), err
}