diff options
author | warptangent <warptangent@tutanota.com> | 2016-03-04 09:40:22 -0800 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-04-05 20:54:06 +0100 |
commit | 7c013f66e95199ec15f413aa8acf66f61a60ffe2 (patch) | |
tree | d8f81179e25c4929409262a0e440f5e4a2e5442d /src/blockchain_db/lmdb/db_lmdb.cpp | |
parent | Schema update: tx_indices (diff) | |
download | monero-7c013f66e95199ec15f413aa8acf66f61a60ffe2.tar.xz |
Add batch warning for further review
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.cpp')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 4 |
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")); } |