SOLR-4124: persistence support

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-31 18:26:36 +00:00
parent 9e82c2409d
commit ecb8438e4c
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,7 @@ public class CoreContainer
private static final String CORE_CONFIG = "config"; private static final String CORE_CONFIG = "config";
private static final String CORE_INSTDIR = "instanceDir"; private static final String CORE_INSTDIR = "instanceDir";
private static final String CORE_DATADIR = "dataDir"; private static final String CORE_DATADIR = "dataDir";
private static final String CORE_ULOGDIR = "ulogDir";
private static final String CORE_SCHEMA = "schema"; private static final String CORE_SCHEMA = "schema";
private static final String CORE_SHARD = "shard"; private static final String CORE_SHARD = "shard";
private static final String CORE_COLLECTION = "collection"; private static final String CORE_COLLECTION = "collection";
@ -1469,7 +1470,9 @@ public class CoreContainer
addCoreProperty(coreAttribs, coreNode, CORE_SCHEMA, schema, dcore.getDefaultSchemaName()); addCoreProperty(coreAttribs, coreNode, CORE_SCHEMA, schema, dcore.getDefaultSchemaName());
String dataDir = dcore.dataDir; String dataDir = dcore.dataDir;
String ulogDir = dcore.ulogDir;
addCoreProperty(coreAttribs, coreNode, CORE_DATADIR, dataDir, null); addCoreProperty(coreAttribs, coreNode, CORE_DATADIR, dataDir, null);
addCoreProperty(coreAttribs, coreNode, CORE_ULOGDIR, ulogDir, null);
addCoreProperty(coreAttribs, coreNode, CORE_TRANSIENT, Boolean.toString(dcore.isTransient()), null); addCoreProperty(coreAttribs, coreNode, CORE_TRANSIENT, Boolean.toString(dcore.isTransient()), null);
addCoreProperty(coreAttribs, coreNode, CORE_LOADONSTARTUP, Boolean.toString(dcore.isLoadOnStartup()), null); addCoreProperty(coreAttribs, coreNode, CORE_LOADONSTARTUP, Boolean.toString(dcore.isLoadOnStartup()), null);