ido_mysql: Fix deadlock.

This commit is contained in:
Gunnar Beutner 2013-07-19 10:34:46 +02:00
parent 8a99019146
commit dfda90f744
1 changed files with 70 additions and 68 deletions

View File

@ -74,6 +74,7 @@ void MysqlDbConnection::TxTimerHandler(void)
void MysqlDbConnection::ReconnectTimerHandler(void) void MysqlDbConnection::ReconnectTimerHandler(void)
{ {
{
boost::mutex::scoped_lock lock(m_ConnectionMutex); boost::mutex::scoped_lock lock(m_ConnectionMutex);
if (m_Connected) { if (m_Connected) {
@ -145,6 +146,7 @@ void MysqlDbConnection::ReconnectTimerHandler(void)
} }
Query("BEGIN"); Query("BEGIN");
}
UpdateAllObjects(); UpdateAllObjects();
} }