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:
Alan Woodward 2014-03-28 17:28:37 +00:00
parent 3944c63ba4
commit a133eed069
1 changed files with 1 additions and 1 deletions

View File

@ -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());