mirror of https://github.com/apache/lucene.git
SOLR-1200
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@781656 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40ef4b2599
commit
04ceffc543
|
@ -316,6 +316,10 @@ public class CoreAdminHandler extends RequestHandlerBase {
|
|||
SolrParams params = req.getParams();
|
||||
String cname = params.get(CoreAdminParams.CORE);
|
||||
SolrCore core = coreContainer.remove(cname);
|
||||
if(core == null){
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"No such core exists '"+cname+"'");
|
||||
}
|
||||
core.close();
|
||||
return coreContainer.isPersistent();
|
||||
|
||||
|
|
Loading…
Reference in New Issue