Replaces StringPairArray with Section in Config.

This commit is contained in:
seelabs
2015-03-06 15:32:20 -08:00
committed by Tom Ritchford
parent 8f88d915ba
commit 6b9e842ddd
28 changed files with 165 additions and 281 deletions

View File

@@ -337,7 +337,7 @@ public:
m_logs.journal("TaggedCache"))
, m_collectorManager (CollectorManager::New (
getConfig().insightSettings, m_logs.journal("Collector")))
getConfig().section (SECTION_INSIGHT), m_logs.journal("Collector")))
, family_ (*m_nodeStore, *m_collectorManager)
@@ -1457,7 +1457,7 @@ static void addTxnSeqField ()
void ApplicationImp::updateTables ()
{
if (getConfig ().nodeDatabase.size () <= 0)
if (getConfig ().section (ConfigSection::nodeDatabase ()).empty ())
{
WriteLog (lsFATAL, Application) << "The [node_db] configuration setting has been updated and must be set";
exitWithCode(1);
@@ -1480,7 +1480,7 @@ void ApplicationImp::updateTables ()
std::unique_ptr <NodeStore::Database> source =
NodeStore::Manager::instance().make_Database ("NodeStore.import", scheduler,
deprecatedLogs().journal("NodeObject"), 0,
getConfig ().importNodeDatabase);
getConfig ()[ConfigSection::importNodeDatabase ()]);
WriteLog (lsWARNING, NodeObject) <<
"Node import from '" << source->getName () << "' to '"