SOLR-3755: Mark indexDir to be deleted while unloading sub-shard cores

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1466090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2013-04-09 15:57:00 +00:00
parent 2c34cb858e
commit 6a7ff16d94
1 changed files with 1 additions and 0 deletions

View File

@ -344,6 +344,7 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
ModifiableSolrParams params = new ModifiableSolrParams();
params.set(CoreAdminParams.ACTION, CoreAdminAction.UNLOAD.toString());
params.set(CoreAdminParams.CORE, core);
params.set(CoreAdminParams.DELETE_INDEX, "true");
sendShardRequest(replica.getNodeName(), params);
}
}