disk type can be generic tags

This commit is contained in:
Chris Lu
2021-02-13 13:50:14 -08:00
parent 712b3e9e53
commit 4bd8a692d8
7 changed files with 15 additions and 26 deletions

View File

@@ -61,10 +61,7 @@ func (ms *MasterServer) Assign(ctx context.Context, req *master_pb.AssignRequest
if err != nil {
return nil, err
}
diskType, err := storage.ToDiskType(req.DiskType)
if err != nil {
return nil, err
}
diskType := storage.ToDiskType(req.DiskType)
option := &topology.VolumeGrowOption{
Collection: req.Collection,

View File

@@ -158,10 +158,7 @@ func (ms *MasterServer) getVolumeGrowOption(r *http.Request) (*topology.VolumeGr
if err != nil {
return nil, err
}
diskType, err := storage.ToDiskType(r.FormValue("disk"))
if err != nil {
return nil, err
}
diskType := storage.ToDiskType(r.FormValue("disk"))
preallocate := ms.preallocateSize
if r.FormValue("preallocate") != "" {