mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
enable collection deletion
This commit is contained in:
parent
2dcdd121ec
commit
5feae4f74c
|
@ -27,10 +27,6 @@ func (vs *VolumeServer) assignVolumeHandler(w http.ResponseWriter, r *http.Reque
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vs *VolumeServer) deleteCollectionHandler(w http.ResponseWriter, r *http.Request) {
|
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"))
|
err := vs.store.DeleteCollection(r.FormValue("collection"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
writeJsonQuiet(w, r, http.StatusOK, map[string]string{"error": ""})
|
writeJsonQuiet(w, r, http.StatusOK, map[string]string{"error": ""})
|
||||||
|
|
Loading…
Reference in a new issue