From df78466a12d9eea524cb31d32f17b127bcc76b0b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 5 Aug 2014 18:14:12 -0700 Subject: [PATCH] remove uploading stated from volume server. --- go/weed/weed_server/volume_server.go | 1 - go/weed/weed_server/volume_server_handlers_admin.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/go/weed/weed_server/volume_server.go b/go/weed/weed_server/volume_server.go index b118e8c35..9cada91ac 100644 --- a/go/weed/weed_server/volume_server.go +++ b/go/weed/weed_server/volume_server.go @@ -35,7 +35,6 @@ func NewVolumeServer(r *http.ServeMux, ip string, port int, publicIp string, fol } vs.store = storage.NewStore(port, ip, publicUrl, folders, maxCounts) - r.HandleFunc("/submit", secure(vs.whiteList, vs.submitFromVolumeServerHandler)) r.HandleFunc("/status", secure(vs.whiteList, vs.statusHandler)) r.HandleFunc("/admin/assign_volume", secure(vs.whiteList, vs.assignVolumeHandler)) r.HandleFunc("/admin/vacuum_volume_check", secure(vs.whiteList, vs.vacuumVolumeCheckHandler)) diff --git a/go/weed/weed_server/volume_server_handlers_admin.go b/go/weed/weed_server/volume_server_handlers_admin.go index 5921a3b96..6d285524a 100644 --- a/go/weed/weed_server/volume_server_handlers_admin.go +++ b/go/weed/weed_server/volume_server_handlers_admin.go @@ -50,10 +50,6 @@ func (vs *VolumeServer) freezeVolumeHandler(w http.ResponseWriter, r *http.Reque glog.V(2).Infoln("freeze volume =", r.FormValue("volume"), ", error =", err) } -func (vs *VolumeServer) submitFromVolumeServerHandler(w http.ResponseWriter, r *http.Request) { - submitForClientHandler(w, r, vs.masterNode) -} - func (vs *VolumeServer) statsDiskHandler(w http.ResponseWriter, r *http.Request) { m := make(map[string]interface{}) m["Version"] = util.VERSION