mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
DbConnection#Pause(): call overridden method as last step
Otherwise it marks the object as paused and the other steps become no-ops. refs #8727
This commit is contained in:
parent
8dc069dc24
commit
40c0bfad23
@ -87,8 +87,6 @@ void DbConnection::Resume()
|
|||||||
|
|
||||||
void DbConnection::Pause()
|
void DbConnection::Pause()
|
||||||
{
|
{
|
||||||
ConfigObject::Pause();
|
|
||||||
|
|
||||||
Log(LogInformation, "DbConnection")
|
Log(LogInformation, "DbConnection")
|
||||||
<< "Pausing IDO connection: " << GetName();
|
<< "Pausing IDO connection: " << GetName();
|
||||||
|
|
||||||
@ -113,6 +111,8 @@ void DbConnection::Pause()
|
|||||||
ExecuteQuery(query1);
|
ExecuteQuery(query1);
|
||||||
|
|
||||||
NewTransaction();
|
NewTransaction();
|
||||||
|
|
||||||
|
ConfigObject::Pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DbConnection::InitializeDbTimer()
|
void DbConnection::InitializeDbTimer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user