mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Add batch warning for further review
This commit is contained in:
parent
ae0854a431
commit
7c013f66e9
1 changed files with 4 additions and 0 deletions
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue