mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
parent
40c0bfad23
commit
fd9bdb798d
@ -112,6 +112,9 @@ void DbConnection::Pause()
|
|||||||
|
|
||||||
NewTransaction();
|
NewTransaction();
|
||||||
|
|
||||||
|
/* Work on remaining tasks but never delete the threads, for HA resuming later. */
|
||||||
|
m_QueryQueue.Join();
|
||||||
|
|
||||||
ConfigObject::Pause();
|
ConfigObject::Pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,9 +107,6 @@ void IdoMysqlConnection::Pause()
|
|||||||
|
|
||||||
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
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")
|
Log(LogInformation, "IdoMysqlConnection")
|
||||||
<< "'" << GetName() << "' paused.";
|
<< "'" << GetName() << "' paused.";
|
||||||
|
|
||||||
|
@ -106,9 +106,6 @@ void IdoPgsqlConnection::Pause()
|
|||||||
|
|
||||||
m_QueryQueue.Enqueue([this]() { Disconnect(); }, PriorityLow);
|
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")
|
Log(LogInformation, "IdoPgsqlConnection")
|
||||||
<< "'" << GetName() << "' paused.";
|
<< "'" << GetName() << "' paused.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user