mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
40c0bfad23
commit
fd9bdb798d
@ -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…
x
Reference in New Issue
Block a user