mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
0d34d8951a
commit
92df2ce2ca
@ -112,6 +112,8 @@ void DbConnection::Pause()
|
|||||||
|
|
||||||
NewTransaction();
|
NewTransaction();
|
||||||
|
|
||||||
|
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
||||||
|
|
||||||
/* Work on remaining tasks but never delete the threads, for HA resuming later. */
|
/* Work on remaining tasks but never delete the threads, for HA resuming later. */
|
||||||
m_QueryQueue.Join();
|
m_QueryQueue.Join();
|
||||||
|
|
||||||
|
@ -105,8 +105,6 @@ void IdoMysqlConnection::Pause()
|
|||||||
<< "Rescheduling disconnect task.";
|
<< "Rescheduling disconnect task.";
|
||||||
#endif /* I2_DEBUG */
|
#endif /* I2_DEBUG */
|
||||||
|
|
||||||
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
|
||||||
|
|
||||||
Log(LogInformation, "IdoMysqlConnection")
|
Log(LogInformation, "IdoMysqlConnection")
|
||||||
<< "'" << GetName() << "' paused.";
|
<< "'" << GetName() << "' paused.";
|
||||||
|
|
||||||
|
@ -104,8 +104,6 @@ void IdoPgsqlConnection::Pause()
|
|||||||
|
|
||||||
m_ReconnectTimer.reset();
|
m_ReconnectTimer.reset();
|
||||||
|
|
||||||
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
|
||||||
|
|
||||||
Log(LogInformation, "IdoPgsqlConnection")
|
Log(LogInformation, "IdoPgsqlConnection")
|
||||||
<< "'" << GetName() << "' paused.";
|
<< "'" << GetName() << "' paused.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user