resourceloader gives the correct instancedir

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@787179 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-06-22 09:29:25 +00:00
parent f2971ef476
commit ef46688646
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ public class CoreContainer
IndexSchema schema = null; IndexSchema schema = null;
if(indexSchemaCache != null){ if(indexSchemaCache != null){
//schema sharing is enabled. so check if it already is loaded //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()){ if(schemFile. exists()){
String key = schemFile.getAbsolutePath()+":"+new SimpleDateFormat("yyyyMMddhhmmss").format(new Date(schemFile.lastModified())); String key = schemFile.getAbsolutePath()+":"+new SimpleDateFormat("yyyyMMddhhmmss").format(new Date(schemFile.lastModified()));
schema = indexSchemaCache.get(key); schema = indexSchemaCache.get(key);