#581 - ElasticSearch - DocStoreConfig, read dropCreate not read from properties file

This commit is contained in:
Robin Bygrave
2016-03-02 23:22:13 +13:00
parent e2558a1e24
commit 646de50ae8
2 changed files with 4 additions and 3 deletions
@@ -134,5 +134,6 @@ public class DocStoreConfig {
url = properties.get("docstore.url", url);
persist = properties.getEnum(DocStoreEvent.class, "docstore.persist", persist);
bulkBatchSize = properties.getInt("docstore.bulkBatchSize", bulkBatchSize);
dropCreate = properties.getBoolean("docstore.dropCreate", dropCreate);
}
}
@@ -2250,14 +2250,14 @@ public class ServerConfig {
}
/**
* This is broken out for the same reason as above - preserve existing behaviour but let it be overridden.
* This is broken out to allow overridden behaviour.
*/
protected void loadDocStoreSettings(PropertiesWrapper p) {
docStoreConfig.loadSettings(p);
}
/**
* This is broken out for the same reason as above - preserve existing behaviour but let it be overridden.
* This is broken out to allow overridden behaviour.
*/
protected void loadAutoTuneSettings(PropertiesWrapper p) {
autoTuneConfig.loadSettings(p);
@@ -2287,7 +2287,7 @@ public class ServerConfig {
if (docStoreConfig == null) {
docStoreConfig = new DocStoreConfig();
}
docStoreConfig.loadSettings(p);
loadDocStoreSettings(p);
explicitTransactionBeginMode = p.getBoolean("explicitTransactionBeginMode", explicitTransactionBeginMode);
autoCommitMode = p.getBoolean("autoCommitMode", autoCommitMode);