mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-21 06:08:39 -04:00
parent
40c0bfad23
commit
fd9bdb798d
3 changed files with 3 additions and 6 deletions
|
|
@ -112,6 +112,9 @@ void DbConnection::Pause()
|
|||
|
||||
NewTransaction();
|
||||
|
||||
/* Work on remaining tasks but never delete the threads, for HA resuming later. */
|
||||
m_QueryQueue.Join();
|
||||
|
||||
ConfigObject::Pause();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -107,9 +107,6 @@ void IdoMysqlConnection::Pause()
|
|||
|
||||
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
||||
|
||||
/* Work on remaining tasks but never delete the threads, for HA resuming later. */
|
||||
m_QueryQueue.Join();
|
||||
|
||||
Log(LogInformation, "IdoMysqlConnection")
|
||||
<< "'" << GetName() << "' paused.";
|
||||
|
||||
|
|
|
|||
|
|
@ -106,9 +106,6 @@ void IdoPgsqlConnection::Pause()
|
|||
|
||||
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
||||
|
||||
/* Work on remaining tasks but never delete the threads, for HA resuming later. */
|
||||
m_QueryQueue.Join();
|
||||
|
||||
Log(LogInformation, "IdoPgsqlConnection")
|
||||
<< "'" << GetName() << "' paused.";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue