mirror of https://github.com/apache/lucene.git
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:
parent
e5b31d2904
commit
5945077918
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue