mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
4800cbb210
commit
f19cc514b9
@ -84,10 +84,10 @@ void IdoMysqlConnection::Resume(void)
|
|||||||
|
|
||||||
void IdoMysqlConnection::Pause(void)
|
void IdoMysqlConnection::Pause(void)
|
||||||
{
|
{
|
||||||
DbConnection::Pause();
|
|
||||||
|
|
||||||
m_ReconnectTimer.reset();
|
m_ReconnectTimer.reset();
|
||||||
|
|
||||||
|
DbConnection::Pause();
|
||||||
|
|
||||||
m_QueryQueue.Enqueue(boost::bind(&IdoMysqlConnection::Disconnect, this));
|
m_QueryQueue.Enqueue(boost::bind(&IdoMysqlConnection::Disconnect, this));
|
||||||
m_QueryQueue.Join();
|
m_QueryQueue.Join();
|
||||||
}
|
}
|
||||||
|
@ -86,10 +86,10 @@ void IdoPgsqlConnection::Resume(void)
|
|||||||
|
|
||||||
void IdoPgsqlConnection::Pause(void)
|
void IdoPgsqlConnection::Pause(void)
|
||||||
{
|
{
|
||||||
DbConnection::Pause();
|
|
||||||
|
|
||||||
m_ReconnectTimer.reset();
|
m_ReconnectTimer.reset();
|
||||||
|
|
||||||
|
DbConnection::Pause();
|
||||||
|
|
||||||
m_QueryQueue.Enqueue(boost::bind(&IdoPgsqlConnection::Disconnect, this));
|
m_QueryQueue.Enqueue(boost::bind(&IdoPgsqlConnection::Disconnect, this));
|
||||||
m_QueryQueue.Join();
|
m_QueryQueue.Join();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user