diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-17 22:12:09 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-17 22:12:09 -0400 |
commit | ead7fad5526dad53c7885895bd5e52c890a49191 (patch) | |
tree | 0252647802b6cf83f48fd001d60e02bf168bf14f /src/blockchain_db/berkeleydb/db_bdb.h | |
parent | Pull blockchain changes into berkeleydb branch (diff) | |
download | monero-ead7fad5526dad53c7885895bd5e52c890a49191.tar.xz |
BerkeleyDB implementation of BlockchainDB seems to be working!
Diffstat (limited to 'src/blockchain_db/berkeleydb/db_bdb.h')
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.h b/src/blockchain_db/berkeleydb/db_bdb.h index f804db515..b68ed287f 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.h +++ b/src/blockchain_db/berkeleydb/db_bdb.h @@ -39,7 +39,9 @@ struct bdb_txn_safe ~bdb_txn_safe() { LOG_PRINT_L3("bdb_txn_safe: destructor"); - abort(); + + if (m_txn != NULL) + abort(); } void commit(std::string message = "") @@ -91,7 +93,7 @@ public: BlockchainBDB(bool batch_transactions=false); ~BlockchainBDB(); - virtual void open(const std::string& filename); + virtual void open(const std::string& filename, const int db_flags); virtual void create(const std::string& filename); |