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 */
|
||||
Query("SET SESSION TIME_ZONE='+00:00'");
|
||||
|
||||
Query("BEGIN");
|
||||
|
||||
/* update programstatus table */
|
||||
UpdateProgramStatus();
|
||||
|
||||
|
@ -370,8 +372,6 @@ void IdoMysqlConnection::Reconnect(void)
|
|||
activeDbObjs.push_back(dbobj);
|
||||
}
|
||||
|
||||
Query("BEGIN");
|
||||
|
||||
BOOST_FOREACH(const DbObject::Ptr& dbobj, activeDbObjs) {
|
||||
if (dbobj->GetObject() == NULL) {
|
||||
Log(LogNotice, "IdoMysqlConnection")
|
||||
|
|
|
@ -324,6 +324,8 @@ void IdoPgsqlConnection::Reconnect(void)
|
|||
Log(LogInformation, "IdoPgsqlConnection")
|
||||
<< "pgSQL IDO instance id: " << static_cast<long>(m_InstanceID) << " (schema version: '" + version + "')";
|
||||
|
||||
Query("BEGIN");
|
||||
|
||||
/* update programstatus table */
|
||||
UpdateProgramStatus();
|
||||
|
||||
|
@ -360,8 +362,6 @@ void IdoPgsqlConnection::Reconnect(void)
|
|||
activeDbObjs.push_back(dbobj);
|
||||
}
|
||||
|
||||
Query("BEGIN");
|
||||
|
||||
BOOST_FOREACH(const DbObject::Ptr& dbobj, activeDbObjs) {
|
||||
if (dbobj->GetObject() == NULL) {
|
||||
Log(LogNotice, "IdoPgsqlConnection")
|
||||
|
|
Loading…
Reference in New Issue