part of the index store enhacement

This commit is contained in:
kimchy 2010-06-23 10:49:06 +03:00
parent c4aff14e15
commit 2121aaad3b
1 changed files with 1 additions and 2 deletions

View File

@ -54,7 +54,6 @@ import org.elasticsearch.gateway.GatewayModule;
import org.elasticsearch.gateway.GatewayService;
import org.elasticsearch.http.HttpServer;
import org.elasticsearch.http.HttpServerModule;
import org.elasticsearch.index.store.fs.FsStores;
import org.elasticsearch.indices.IndicesModule;
import org.elasticsearch.indices.IndicesService;
import org.elasticsearch.jmx.JmxModule;
@ -219,7 +218,7 @@ public final class InternalNode implements Node {
// Not pretty, but here we go
try {
FileSystemUtils.deleteRecursively(new File(new File(environment.workWithClusterFile(), FsStores.DEFAULT_INDICES_LOCATION),
FileSystemUtils.deleteRecursively(new File(new File(environment.workWithClusterFile(), "indices"),
injector.getInstance(ClusterService.class).state().nodes().localNodeId()));
} catch (Exception e) {
// ignore