lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r787179 - /lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java
Date Mon, 22 Jun 2009 09:29:26 GMT
Author: noble
Date: Mon Jun 22 09:29:25 2009
New Revision: 787179

URL: http://svn.apache.org/viewvc?rev=787179&view=rev
Log:
resourceloader gives the correct instancedir

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

Modified: lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java?rev=787179&r1=787178&r2=787179&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java Mon Jun 22 09:29:25
2009
@@ -367,7 +367,7 @@
     IndexSchema schema = null;
     if(indexSchemaCache != null){
       //schema sharing is enabled. so check if it already is loaded
-      File schemFile = new File(dcore.getInstanceDir() + "conf" + File.separator + dcore.getSchemaName());
+      File schemFile = new File(solrLoader.getInstanceDir() + "conf" + File.separator + dcore.getSchemaName());
       if(schemFile. exists()){
         String key = schemFile.getAbsolutePath()+":"+new SimpleDateFormat("yyyyMMddhhmmss").format(new
Date(schemFile.lastModified()));
         schema = indexSchemaCache.get(key);



Mime
View raw message