mirror of
https://github.com/actiontech/dble.git
synced 2026-01-08 22:01:14 -06:00
Merge pull request #1049 from actiontech/issue-1016
#1016 no need to delete the dnindex file
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user