aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter/fake_core.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-02-11 16:02:20 -0800
committerwarptangent <warptangent@inbox.com>2015-03-16 00:26:59 -0700
commit275cbd4348975371988c79f67d68ceede3f47a1d (patch)
tree859bf49547cb9aa6ad4b2d3e846c8e8972830e9f /src/blockchain_converter/fake_core.h
parentAdd mdb_flags variable to LMDB database open (diff)
downloadmonero-275cbd4348975371988c79f67d68ceede3f47a1d.tar.xz
Add support for database open with flags
Add support to: - BlockchainDB, BlockchainLMDB - blockchain_import utility to open LMDB database with one or more LMDB flags. Sample use: $ blockchain_import --database lmdb#nosync $ blockchain_import --database lmdb#nosync,nometasync
Diffstat (limited to 'src/blockchain_converter/fake_core.h')
-rw-r--r--src/blockchain_converter/fake_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blockchain_converter/fake_core.h b/src/blockchain_converter/fake_core.h
index 68021a2bd..aff249cd9 100644
--- a/src/blockchain_converter/fake_core.h
+++ b/src/blockchain_converter/fake_core.h
@@ -46,14 +46,14 @@ struct fake_core_lmdb
// for multi_db_runtime:
#if !defined(BLOCKCHAIN_DB)
- fake_core_lmdb(const boost::filesystem::path &path, const bool use_testnet=false, const bool do_batch=true) : m_pool(&m_storage), m_storage(m_pool)
+ fake_core_lmdb(const boost::filesystem::path &path, const bool use_testnet=false, const bool do_batch=true, const int mdb_flags=0) : m_pool(&m_storage), m_storage(m_pool)
// for multi_db_compile:
#else
- fake_core_lmdb(const boost::filesystem::path &path, const bool use_testnet=false, const bool do_batch=true) : m_pool(m_storage), m_storage(m_pool)
+ fake_core_lmdb(const boost::filesystem::path &path, const bool use_testnet=false, const bool do_batch=true, const int mdb_flags=0) : m_pool(m_storage), m_storage(m_pool)
#endif
{
m_pool.init(path.string());
- m_storage.init(path.string(), use_testnet);
+ m_storage.init(path.string(), use_testnet, mdb_flags);
if (do_batch)
m_storage.get_db()->set_batch_transactions(do_batch);
support_batch = true;