aboutsummaryrefslogtreecommitdiff
path: root/other/java/hdfs2
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-09-11 20:26:20 -0700
committerChris Lu <chris.lu@gmail.com>2019-09-11 20:26:20 -0700
commitae53f636804e41c2c7a0817e8f35434a00b6eacb (patch)
tree82bbdbcf4b454cb506934847e26076cfdd79e4b7 /other/java/hdfs2
parent5e9c65469ecf3356fa02b1cef246d83abdb02d14 (diff)
downloadseaweedfs-ae53f636804e41c2c7a0817e8f35434a00b6eacb.tar.xz
seaweedfs-ae53f636804e41c2c7a0817e8f35434a00b6eacb.zip
filer: recursive deletion optionally ignoring any errors
fix https://github.com/chrislusf/seaweedfs/issues/1062
Diffstat (limited to 'other/java/hdfs2')
-rw-r--r--other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java b/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java
index 826b74560..deb32c167 100644
--- a/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java
+++ b/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java
@@ -106,7 +106,7 @@ public class SeaweedFileSystemStore {
}
}
- return filerClient.deleteEntry(getParentDirectory(path), path.getName(), true, recursive);
+ return filerClient.deleteEntry(getParentDirectory(path), path.getName(), true, recursive, true);
}
private FileStatus doGetFileStatus(Path path, FilerProto.Entry entry) {