aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_server_handlers.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-10-14 00:12:28 -0700
committerChris Lu <chris.lu@gmail.com>2018-10-14 00:12:28 -0700
commitff66269b62ddffe70127bbb9835ae5e7b24e8ce7 (patch)
tree469ac5785c44913288437e2ca765042583aeba28 /weed/server/master_server_handlers.go
parent3ddcd870983e68e24ad569127f9a989d7bc986dc (diff)
downloadseaweedfs-ff66269b62ddffe70127bbb9835ae5e7b24e8ce7.tar.xz
seaweedfs-ff66269b62ddffe70127bbb9835ae5e7b24e8ce7.zip
use grpc to replace http APIs for batch volume id lookup and batch delete
1. remove batch volume id lookup http API /vol/lookup 2. remove batch delete http API /delete
Diffstat (limited to 'weed/server/master_server_handlers.go')
-rw-r--r--weed/server/master_server_handlers.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/weed/server/master_server_handlers.go b/weed/server/master_server_handlers.go
index b469afd24..a797dddfc 100644
--- a/weed/server/master_server_handlers.go
+++ b/weed/server/master_server_handlers.go
@@ -58,15 +58,6 @@ func (ms *MasterServer) dirLookupHandler(w http.ResponseWriter, r *http.Request)
writeJsonQuiet(w, r, httpStatus, location)
}
-// This can take batched volumeIds, &volumeId=x&volumeId=y&volumeId=z
-func (ms *MasterServer) volumeLookupHandler(w http.ResponseWriter, r *http.Request) {
- r.ParseForm()
- vids := r.Form["volumeId"]
- collection := r.FormValue("collection") //optional, but can be faster if too many collections
- volumeLocations := ms.lookupVolumeId(vids, collection)
- writeJsonQuiet(w, r, http.StatusOK, volumeLocations)
-}
-
func (ms *MasterServer) dirAssignHandler(w http.ResponseWriter, r *http.Request) {
stats.AssignRequest()
requestedCount, e := strconv.ParseUint(r.FormValue("count"), 10, 64)