diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-02 15:21:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-02 15:21:39 +0000 |
commit | ad11db9144f766d86d4aa4904eecd446fb670597 (patch) | |
tree | ce73e6cf2aa53eb1d4dc38a6cb293c597c5c99a1 /src/blockchain_db/lmdb | |
parent | miner: restore std::cout precision after modification (diff) | |
download | monero-ad11db9144f766d86d4aa4904eecd446fb670597.tar.xz |
blockchain_db: initialize m_open in base class ctor
It's cleaner this way, since it's a base class field
Coverity 136568
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 604aae61e..149da53b6 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1074,13 +1074,12 @@ BlockchainLMDB::~BlockchainLMDB() close(); } -BlockchainLMDB::BlockchainLMDB(bool batch_transactions) +BlockchainLMDB::BlockchainLMDB(bool batch_transactions): BlockchainDB() { LOG_PRINT_L3("BlockchainLMDB::" << __func__); // initialize folder to something "safe" just in case // someone accidentally misuses this class... m_folder = "thishsouldnotexistbecauseitisgibberish"; - m_open = false; m_batch_transactions = batch_transactions; m_write_txn = nullptr; |