Merge pull request #1049 from actiontech/issue-1016

#1016 no need to delete the dnindex file
This commit is contained in:
tiger.yan
2019-03-11 16:53:15 +08:00
committed by GitHub

View File

@@ -30,9 +30,6 @@ public class BinDataPathChildrenCacheListener implements PathChildrenCacheListen
case CHILD_UPDATED:
add(data, true);
break;
case CHILD_REMOVED:
delete(data);
break;
default:
break;
}
@@ -51,13 +48,4 @@ public class BinDataPathChildrenCacheListener implements PathChildrenCacheListen
}
}
private void delete(ChildData childData) throws IOException {
String name = childData.getPath().substring(childData.getPath().lastIndexOf("/") + 1);
File file = new File(
SystemConfig.getHomePath() + File.separator + "conf",
name);
if (file.exists())
file.delete();
}
}