db_lmdb: demote the "batch already enabled" log, it's harmless

This commit is contained in:
moneromooo-monero 2018-07-20 23:40:51 +01:00
parent 702a41034d
commit be02eb9389
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -2982,10 +2982,10 @@ 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");
MINFO("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"));
MINFO("batch transactions " << (m_batch_transactions ? "enabled" : "disabled"));
}
// return true if we started the txn, false if already started