diff options
author | Howard Chu <hyc@symas.com> | 2016-02-18 12:09:57 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-02-23 20:47:15 +0000 |
commit | 8cc7a36f0be2f90b62a6ffce840817e046e928a0 (patch) | |
tree | 70d2b704dc2a341ee573db9cbb0a7f12e45d5cf4 /src/blockchain_db/berkeleydb | |
parent | core: check whether an update is needed straight away (diff) | |
download | monero-8cc7a36f0be2f90b62a6ffce840817e046e928a0.tar.xz |
read txn/cursor stuff
Could wrap more later.
Diffstat (limited to 'src/blockchain_db/berkeleydb')
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.cpp | 2 | ||||
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp index f035bf4c4..55fd2e31f 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.cpp +++ b/src/blockchain_db/berkeleydb/db_bdb.cpp @@ -1835,7 +1835,7 @@ void BlockchainBDB::set_batch_transactions(bool batch_transactions) LOG_PRINT_L3("batch transactions " << (m_batch_transactions ? "enabled" : "disabled")); } -void BlockchainBDB::block_txn_start() +void BlockchainBDB::block_txn_start(bool readonly) { // TODO } diff --git a/src/blockchain_db/berkeleydb/db_bdb.h b/src/blockchain_db/berkeleydb/db_bdb.h index 42119da93..38bef3934 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.h +++ b/src/blockchain_db/berkeleydb/db_bdb.h @@ -328,7 +328,7 @@ public: virtual void batch_stop(); virtual void batch_abort(); - virtual void block_txn_start(); + virtual void block_txn_start(bool readonly); virtual void block_txn_stop(); virtual void block_txn_abort(); |