Add batch warning for further review
This commit is contained in:
parent
ae0854a431
commit
7c013f66e9
@ -2293,6 +2293,10 @@ void BlockchainLMDB::batch_abort()
|
|||||||
void BlockchainLMDB::set_batch_transactions(bool batch_transactions)
|
void BlockchainLMDB::set_batch_transactions(bool batch_transactions)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
|
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;
|
m_batch_transactions = batch_transactions;
|
||||||
LOG_PRINT_L3("batch transactions " << (m_batch_transactions ? "enabled" : "disabled"));
|
LOG_PRINT_L3("batch transactions " << (m_batch_transactions ? "enabled" : "disabled"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user