add disable volume_growth flag (#7196)

This commit is contained in:
Dmitriy Pavlov
2025-09-04 15:39:56 +03:00
committed by GitHub
parent e030530aab
commit cd78e653e1
5 changed files with 11 additions and 2 deletions

View File

@@ -28,6 +28,10 @@ const (
)
func (ms *MasterServer) DoAutomaticVolumeGrow(req *topology.VolumeGrowRequest) {
if ms.option.VolumeGrowthDisabled {
glog.V(1).Infof("automatic volume grow disabled")
return
}
glog.V(1).Infoln("starting automatic volume grow")
start := time.Now()
newVidLocations, err := ms.vg.AutomaticGrowByType(req.Option, ms.grpcDialOption, ms.Topo, req.Count)