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