Use soci in some places:

* Brings the soci subtree into rippled.
* Validator, peerfinder, and SHAMapStore use new soci backend.
* Optional postgresql backend for soci (if POSTGRESQL_ROOT env var is set).
This commit is contained in:
seelabs
2015-01-22 15:04:30 -08:00
committed by Vinnie Falco
parent c7cfd23580
commit d0ef2f7dd8
28 changed files with 1412 additions and 663 deletions

View File

@@ -329,7 +329,7 @@ public:
, m_shaMapStore (make_SHAMapStore (setup_SHAMapStore (
getConfig()), *this, m_nodeStoreScheduler,
m_logs.journal ("SHAMapStore"), m_logs.journal ("NodeObject"),
m_txMaster))
m_txMaster, getConfig()))
, m_nodeStore (m_shaMapStore->makeDatabase ("NodeStore.main", 4))
@@ -394,7 +394,7 @@ public:
, m_sntpClient (SNTPClient::New (*this))
, m_validators (Validators::make_Manager(*this, get_io_service(),
getConfig ().getModuleDatabasePath (), m_logs.journal("UVL")))
m_logs.journal("UVL"), getConfig ()))
, m_amendmentTable (make_AmendmentTable
(weeks(2), MAJORITY_FRACTION,
@@ -797,9 +797,8 @@ public:
//
// if (!getConfig ().RUN_STANDALONE)
m_overlay = make_Overlay (setup_Overlay(getConfig()), *m_jobQueue,
*serverHandler_, *m_resourceManager,
getConfig ().getModuleDatabasePath (), *m_resolver,
get_io_service());
*serverHandler_, *m_resourceManager, *m_resolver, get_io_service(),
getConfig());
add (*m_overlay); // add to PropertyStream
{