IDO-MySQL: Make sure InternalNewTransaction() and FinishAsyncQueries() get executed during high load

This commit is contained in:
Noah Hilverling 2021-03-10 09:29:08 +01:00
parent 15786baf3d
commit f551e95338
1 changed files with 3 additions and 2 deletions

View File

@ -160,8 +160,7 @@ void IdoMysqlConnection::NewTransaction()
<< "Scheduling new transaction and finishing async queries.";
#endif /* I2_DEBUG */
m_QueryQueue.Enqueue([this]() { InternalNewTransaction(); }, PriorityNormal);
m_QueryQueue.Enqueue([this]() { FinishAsyncQueries(); }, PriorityNormal);
m_QueryQueue.Enqueue([this]() { InternalNewTransaction(); }, PriorityHigh);
}
void IdoMysqlConnection::InternalNewTransaction()
@ -175,6 +174,8 @@ void IdoMysqlConnection::InternalNewTransaction()
AsyncQuery("COMMIT");
AsyncQuery("BEGIN");
FinishAsyncQueries();
}
void IdoMysqlConnection::ReconnectTimerHandler()