mirror of https://github.com/apache/lucene.git
SOLR-736 -- make sure CoreContainer is used to initialize core (even in deprecated case)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@702994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
130a2022b1
commit
01c466c0fa
|
@ -374,8 +374,9 @@ public final class SolrCore implements SolrInfoMBean {
|
|||
synchronized( SolrCore.class ) {
|
||||
if( instance == null ) {
|
||||
try {
|
||||
// sets 'instance' to the latest solr core
|
||||
instance = new SolrCore( null, null, new SolrConfig(), null, null);
|
||||
// sets 'instance' to the latest solr core
|
||||
CoreContainer.Initializer init = new CoreContainer.Initializer();
|
||||
instance = init.initialize().getCore("");
|
||||
} catch(Exception xany) {
|
||||
throw new SolrException( SolrException.ErrorCode.SERVER_ERROR,
|
||||
"error creating core", xany );
|
||||
|
|
Loading…
Reference in New Issue