From ef4668864605396f168cd694accc1acd63483181 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Mon, 22 Jun 2009 09:29:25 +0000 Subject: [PATCH] resourceloader gives the correct instancedir git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@787179 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/core/CoreContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/solr/core/CoreContainer.java b/src/java/org/apache/solr/core/CoreContainer.java index 4954a66aad0..22e3ccb194a 100644 --- a/src/java/org/apache/solr/core/CoreContainer.java +++ b/src/java/org/apache/solr/core/CoreContainer.java @@ -367,7 +367,7 @@ public class CoreContainer 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);