lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1293460 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java
Date Fri, 24 Feb 2012 22:38:57 GMT
Author: markrmiller
Date: Fri Feb 24 22:38:56 2012
New Revision: 1293460

URL: http://svn.apache.org/viewvc?rev=1293460&view=rev
Log:
allow the zk server data dir to be overridden by sys prop

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java?rev=1293460&r1=1293459&r2=1293460&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/CoreContainer.java Fri Feb 24
22:38:56 2012
@@ -173,7 +173,8 @@ public class CoreContainer 
     System.setProperty("zookeeper.jmx.log4j.disable", "true");
 
     if (zkRun != null) {
-      zkServer = new SolrZkServer(zkRun, zookeeperHost, solrHome, hostPort);
+      String zkDataDir = System.getProperty("zkServerDataDir", solrHome);
+      zkServer = new SolrZkServer(zkRun, zookeeperHost, zkDataDir, hostPort);
       zkServer.parseConfig();
       zkServer.start();
       



Mime
View raw message