Add batch warning for further review

This commit is contained in:
warptangent 2016-03-04 09:40:22 -08:00 committed by Howard Chu
parent ae0854a431
commit 7c013f66e9
1 changed files with 4 additions and 0 deletions

View File

@ -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"));
}