mirror of https://github.com/apache/lucene.git
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:
parent
f2971ef476
commit
ef46688646
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue