aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-11 07:50:53 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-11 07:50:53 -0800
commitf06b65a6fd5636d6d385cdf027eeebb42e4ec62a (patch)
tree5811cfc2b14d21e95b54c6863580908eee7e2f7b /weed
parent2449945b83065b4c337d6d6391763221a5ff22bd (diff)
downloadseaweedfs-f06b65a6fd5636d6d385cdf027eeebb42e4ec62a.tar.xz
seaweedfs-f06b65a6fd5636d6d385cdf027eeebb42e4ec62a.zip
filer: EXPERT add shouldDeleteChunks parameter for fast deletion
Diffstat (limited to 'weed')
-rw-r--r--weed/server/filer_server_handlers_write.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.go
index 3f60ea8d4..eabce53e1 100644
--- a/weed/server/filer_server_handlers_write.go
+++ b/weed/server/filer_server_handlers_write.go
@@ -280,12 +280,12 @@ func (fs *FilerServer) uploadToVolumeServer(r *http.Request, u *url.URL, auth se
// curl -X DELETE http://localhost:8888/path/to
// curl -X DELETE http://localhost:8888/path/to?recursive=true
// curl -X DELETE http://localhost:8888/path/to?recursive=true&ignoreRecursiveError=true
-// curl -X DELETE http://localhost:8888/path/to?recursive=true&shouldDeleteChunks=false&shouldDeleteChunks=false
+// curl -X DELETE http://localhost:8888/path/to?recursive=true&shouldDeleteChunks=true
func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) {
isRecursive := r.FormValue("recursive") == "true"
ignoreRecursiveError := r.FormValue("ignoreRecursiveError") == "true"
- shouldDeleteChunks := !(r.FormValue("shouldDeleteChunks") == "false")
+ shouldDeleteChunks := r.FormValue("shouldDeleteChunks") == "true"
err := fs.filer.DeleteEntryMetaAndData(context.Background(), filer2.FullPath(r.URL.Path), isRecursive, ignoreRecursiveError, shouldDeleteChunks)
if err != nil {