|
@ -167,6 +167,7 @@ func (ms *MasterServer) getVolumeGrowOption(r *http.Request) (*topology.VolumeGr |
|
|
return nil, fmt.Errorf("Failed to parse int64 preallocate = %s: %v", r.FormValue("preallocate"), err) |
|
|
return nil, fmt.Errorf("Failed to parse int64 preallocate = %s: %v", r.FormValue("preallocate"), err) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
ver := needle.GetCurrentVersion() |
|
|
volumeGrowOption := &topology.VolumeGrowOption{ |
|
|
volumeGrowOption := &topology.VolumeGrowOption{ |
|
|
Collection: r.FormValue("collection"), |
|
|
Collection: r.FormValue("collection"), |
|
|
ReplicaPlacement: replicaPlacement, |
|
|
ReplicaPlacement: replicaPlacement, |
|
@ -177,7 +178,7 @@ func (ms *MasterServer) getVolumeGrowOption(r *http.Request) (*topology.VolumeGr |
|
|
Rack: r.FormValue("rack"), |
|
|
Rack: r.FormValue("rack"), |
|
|
DataNode: r.FormValue("dataNode"), |
|
|
DataNode: r.FormValue("dataNode"), |
|
|
MemoryMapMaxSizeMb: memoryMapMaxSizeMb, |
|
|
MemoryMapMaxSizeMb: memoryMapMaxSizeMb, |
|
|
Version: uint32(needle.GetCurrentVersion()), |
|
|
|
|
|
|
|
|
Version: uint32(ver), |
|
|
} |
|
|
} |
|
|
return volumeGrowOption, nil |
|
|
return volumeGrowOption, nil |
|
|
} |
|
|
} |
|
|