aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-03-04 09:40:22 -0800
committerHoward Chu <hyc@symas.com>2016-04-05 20:54:06 +0100
commit7c013f66e95199ec15f413aa8acf66f61a60ffe2 (patch)
treed8f81179e25c4929409262a0e440f5e4a2e5442d /src/blockchain_db/lmdb/db_lmdb.cpp
parentSchema update: tx_indices (diff)
downloadmonero-7c013f66e95199ec15f413aa8acf66f61a60ffe2.tar.xz
Add batch warning for further review
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index d26659ead..4c377544c 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -2293,6 +2293,10 @@ void BlockchainLMDB::batch_abort()
void BlockchainLMDB::set_batch_transactions(bool batch_transactions)
{
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
+ if ((batch_transactions) && (m_batch_transactions))
+ {
+ LOG_PRINT_L0("WARNING: batch transaction mode already enabled, but asked to enable batch mode");
+ }
m_batch_transactions = batch_transactions;
LOG_PRINT_L3("batch transactions " << (m_batch_transactions ? "enabled" : "disabled"));
}