aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_server_handlers_admin.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-10-05 00:40:04 -0700
committerChris Lu <chris.lu@gmail.com>2021-10-05 00:40:04 -0700
commit96119eab00e13ff056f3058b9032d12c3758cb35 (patch)
tree8d5def6022473d24edb12d9bde5d65cd0bf8c8f0 /weed/server/master_server_handlers_admin.go
parent8a663060640a499f8a37a7f60e3a7c5a2f95fe05 (diff)
downloadseaweedfs-96119eab00e13ff056f3058b9032d12c3758cb35.tar.xz
seaweedfs-96119eab00e13ff056f3058b9032d12c3758cb35.zip
refactor
Diffstat (limited to 'weed/server/master_server_handlers_admin.go')
-rw-r--r--weed/server/master_server_handlers_admin.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/weed/server/master_server_handlers_admin.go b/weed/server/master_server_handlers_admin.go
index 549ea86dc..41a2b570b 100644
--- a/weed/server/master_server_handlers_admin.go
+++ b/weed/server/master_server_handlers_admin.go
@@ -132,13 +132,6 @@ func (ms *MasterServer) submitFromMasterServerHandler(w http.ResponseWriter, r *
}
}
-func (ms *MasterServer) shouldVolumeGrow(option *topology.VolumeGrowOption) bool {
- vl := ms.Topo.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl, option.DiskType)
- active, high := vl.GetActiveVolumeCount(option)
- //glog.V(0).Infof("active volume: %d, high usage volume: %d\n", active, high)
- return active <= high
-}
-
func (ms *MasterServer) getVolumeGrowOption(r *http.Request) (*topology.VolumeGrowOption, error) {
replicationString := r.FormValue("replication")
if replicationString == "" {