mirror of https://github.com/apache/lucene.git
SOLR-4478: Use CloudConfigSetService with embedded zk server
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1582839 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3944c63ba4
commit
a133eed069
|
@ -241,7 +241,7 @@ public abstract class ConfigSolr {
|
|||
}
|
||||
|
||||
public ConfigSetService createCoreConfigService(SolrResourceLoader loader, ZkController zkController) {
|
||||
if (getZkHost() != null)
|
||||
if (getZkHost() != null || System.getProperty("zkRun") != null)
|
||||
return new CloudConfigSetService(loader, zkController);
|
||||
if (hasSchemaCache())
|
||||
return new ConfigSetService.SchemaCaching(loader, getConfigSetBaseDirectory());
|
||||
|
|
Loading…
Reference in New Issue