mirror of https://github.com/Icinga/icinga2.git
ido_mysql: Fix deadlock.
This commit is contained in:
parent
8a99019146
commit
dfda90f744
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue