SOLR-5632: Fix SolrCore leak.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1558467 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-01-15 17:08:26 +00:00
parent e5b31d2904
commit 5945077918
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ public class CoreAdminHandler extends RequestHandlerBase {
SolrParams params = req.getParams();
String cname = params.get(CoreAdminParams.CORE);
if(coreContainer.getCore(cname) == null) {
if(!coreContainer.getCoreNames().contains(cname)) {
throw new SolrException(ErrorCode.BAD_REQUEST, "Core with core name [" + cname + "] does not exist.");
}