Skip to content

Commit

Permalink
chimera: fix recursive delete
Browse files Browse the repository at this point in the history
fixes commit f3286f9

Target: master
  • Loading branch information
kofemann committed Apr 28, 2023
1 parent 11d6f04 commit bc3f277
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1732,7 +1732,7 @@ public void updateFsStat() throws CacheException {
private void removeRecursively(ExtendedInode parent, String name, ExtendedInode inode,
Consumer<ExtendedInode> deleted) throws ChimeraFsException, CacheException {
try {
if (inode.isDirectory() && inode.stat().getNlink() > 2) {
if (inode.isDirectory()) {
try (DirectoryStreamB<ChimeraDirectoryEntry> list = _fs.newDirectoryStream(inode)) {
for (ChimeraDirectoryEntry entry : list) {
String child = entry.getName();
Expand Down

0 comments on commit bc3f277

Please sign in to comment.