Browse Source

enable collection deletion

pull/210/head
chrislusf 9 years ago
parent
commit
5feae4f74c
  1. 4
      go/weed/weed_server/volume_server_handlers_admin.go

4
go/weed/weed_server/volume_server_handlers_admin.go

@ -27,10 +27,6 @@ func (vs *VolumeServer) assignVolumeHandler(w http.ResponseWriter, r *http.Reque
}
func (vs *VolumeServer) deleteCollectionHandler(w http.ResponseWriter, r *http.Request) {
if "benchmark" != r.FormValue("collection") {
glog.V(0).Infoln("deleting collection =", r.FormValue("collection"), "!!!")
return
}
err := vs.store.DeleteCollection(r.FormValue("collection"))
if err == nil {
writeJsonQuiet(w, r, http.StatusOK, map[string]string{"error": ""})

Loading…
Cancel
Save