Add MDB NodeStore::BackendFactory

This commit is contained in:
Vinnie Falco
2013-07-11 09:56:36 -07:00
committed by JoelKatz
parent 078c3923e7
commit ab6b0e00e6
8 changed files with 183 additions and 23 deletions

View File

@@ -122,8 +122,8 @@ int rippleMain (int argc, char** argv)
// Checks the heap at every allocation and deallocation (slow).
//
//Debug::setAlwaysCheckHeap (false);
// Keeps freed memory blocks and fills them with a guard value.
// Keeps freed memory blocks and fills them with a guard value.
//
//Debug::setHeapDelayedFree (false);
@@ -184,7 +184,9 @@ int rippleMain (int argc, char** argv)
// These must be added before the Application object is created
NodeStore::addBackendFactory (SqliteBackendFactory::getInstance ());
NodeStore::addBackendFactory (LevelDBBackendFactory::getInstance ());
#if RIPPLE_MDB_AVAILABLE
NodeStore::addBackendFactory (MdbBackendFactory::getInstance ());
#endif
if (! RandomNumbers::getInstance ().initialize ())
{