aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-11 14:58:22 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-11 14:58:22 -0800
commit1ddfbff2d384dcb941bba33f13e92bc4bba7a297 (patch)
treee42de859285321f422b361f2c7eb4c1f38cd58ba
parentf06b65a6fd5636d6d385cdf027eeebb42e4ec62a (diff)
downloadseaweedfs-1ddfbff2d384dcb941bba33f13e92bc4bba7a297.tar.xz
seaweedfs-1ddfbff2d384dcb941bba33f13e92bc4bba7a297.zip
deletion add option skipChunkDeletion
-rw-r--r--weed/server/filer_server_handlers_write.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.go
index eabce53e1..c919efbc9 100644
--- a/weed/server/filer_server_handlers_write.go
+++ b/weed/server/filer_server_handlers_write.go
@@ -280,14 +280,14 @@ 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=true
+// curl -X DELETE http://localhost:8888/path/to?recursive=true&skipChunkDeletion=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") == "true"
+ skipChunkDeletion := r.FormValue("skipChunkDeletion") == "true"
- err := fs.filer.DeleteEntryMetaAndData(context.Background(), filer2.FullPath(r.URL.Path), isRecursive, ignoreRecursiveError, shouldDeleteChunks)
+ err := fs.filer.DeleteEntryMetaAndData(context.Background(), filer2.FullPath(r.URL.Path), isRecursive, ignoreRecursiveError, !skipChunkDeletion)
if err != nil {
glog.V(1).Infoln("deleting", r.URL.Path, ":", err.Error())
writeJsonError(w, r, http.StatusInternalServerError, err)