mirror of https://github.com/Icinga/icinga2.git
parent
49558420f9
commit
eadd61c7e4
|
@ -337,6 +337,8 @@ void IdoMysqlConnection::Reconnect(void)
|
||||||
/* set session time zone to utc */
|
/* set session time zone to utc */
|
||||||
Query("SET SESSION TIME_ZONE='+00:00'");
|
Query("SET SESSION TIME_ZONE='+00:00'");
|
||||||
|
|
||||||
|
Query("BEGIN");
|
||||||
|
|
||||||
/* update programstatus table */
|
/* update programstatus table */
|
||||||
UpdateProgramStatus();
|
UpdateProgramStatus();
|
||||||
|
|
||||||
|
@ -370,8 +372,6 @@ void IdoMysqlConnection::Reconnect(void)
|
||||||
activeDbObjs.push_back(dbobj);
|
activeDbObjs.push_back(dbobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
Query("BEGIN");
|
|
||||||
|
|
||||||
BOOST_FOREACH(const DbObject::Ptr& dbobj, activeDbObjs) {
|
BOOST_FOREACH(const DbObject::Ptr& dbobj, activeDbObjs) {
|
||||||
if (dbobj->GetObject() == NULL) {
|
if (dbobj->GetObject() == NULL) {
|
||||||
Log(LogNotice, "IdoMysqlConnection")
|
Log(LogNotice, "IdoMysqlConnection")
|
||||||
|
|
|
@ -324,6 +324,8 @@ void IdoPgsqlConnection::Reconnect(void)
|
||||||
Log(LogInformation, "IdoPgsqlConnection")
|
Log(LogInformation, "IdoPgsqlConnection")
|
||||||
<< "pgSQL IDO instance id: " << static_cast<long>(m_InstanceID) << " (schema version: '" + version + "')";
|
<< "pgSQL IDO instance id: " << static_cast<long>(m_InstanceID) << " (schema version: '" + version + "')";
|
||||||
|
|
||||||
|
Query("BEGIN");
|
||||||
|
|
||||||
/* update programstatus table */
|
/* update programstatus table */
|
||||||
UpdateProgramStatus();
|
UpdateProgramStatus();
|
||||||
|
|
||||||
|
@ -360,8 +362,6 @@ void IdoPgsqlConnection::Reconnect(void)
|
||||||
activeDbObjs.push_back(dbobj);
|
activeDbObjs.push_back(dbobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
Query("BEGIN");
|
|
||||||
|
|
||||||
BOOST_FOREACH(const DbObject::Ptr& dbobj, activeDbObjs) {
|
BOOST_FOREACH(const DbObject::Ptr& dbobj, activeDbObjs) {
|
||||||
if (dbobj->GetObject() == NULL) {
|
if (dbobj->GetObject() == NULL) {
|
||||||
Log(LogNotice, "IdoPgsqlConnection")
|
Log(LogNotice, "IdoPgsqlConnection")
|
||||||
|
|
Loading…
Reference in New Issue