aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/berkeleydb/db_bdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blockchain_db/berkeleydb/db_bdb.h')
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.h6
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 b28afbf20..f804db515 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.h
+++ b/src/blockchain_db/berkeleydb/db_bdb.h
@@ -49,7 +49,7 @@ struct bdb_txn_safe
message = "Failed to commit a transaction to the db";
}
- if (txn->commit())
+ if (m_txn->commit(0))
{
m_txn = NULL;
LOG_PRINT_L0(message);
@@ -103,6 +103,8 @@ public:
virtual std::vector<std::string> get_filenames() const;
+ virtual std::string get_db_name() const;
+
virtual bool lock();
virtual void unlock();
@@ -279,7 +281,7 @@ private:
uint64_t m_height;
uint64_t m_num_outputs;
std::string m_folder;
- txn_safe m_write_txn; // may point to either a short-lived txn or a batch txn
+ bdb_txn_safe *m_write_txn;
bool m_batch_transactions; // support for batch transactions
};