From 7c013f66e95199ec15f413aa8acf66f61a60ffe2 Mon Sep 17 00:00:00 2001 From: warptangent Date: Fri, 4 Mar 2016 09:40:22 -0800 Subject: Add batch warning for further review --- src/blockchain_db/lmdb/db_lmdb.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/blockchain_db') 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")); } -- cgit v1.2.3