mirror of https://github.com/apache/lucene.git
SOLR-753: CoreDescriptor holds wrong instance dir for single core
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@692734 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
daa32711c9
commit
84f9a2a863
|
@ -115,7 +115,7 @@ public class CoreContainer
|
|||
// perform compatibility init
|
||||
cores = new CoreContainer(new SolrResourceLoader(instanceDir));
|
||||
SolrConfig cfg = solrConfigFilename == null ? new SolrConfig() : new SolrConfig(solrConfigFilename);
|
||||
CoreDescriptor dcore = new CoreDescriptor(cores, "", cfg.getResourceLoader().getInstanceDir());
|
||||
CoreDescriptor dcore = new CoreDescriptor(cores, "", ".");
|
||||
SolrCore singlecore = new SolrCore(null, null, cfg, null, dcore);
|
||||
abortOnConfigurationError = cfg.getBool(
|
||||
"abortOnConfigurationError", abortOnConfigurationError);
|
||||
|
|
Loading…
Reference in New Issue