[icinga-checkins] icinga.org: icinga2/master: DB IDO: PArtially revert change for *group_members

git at icinga.org git at icinga.org
Mon Feb 22 20:24:23 CET 2016


Module: icinga2
Branch: master
Commit: 5b30c9ed2c77d292e971a03bd2a6842b4de9ecbc
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=5b30c9ed2c77d292e971a03bd2a6842b4de9ecbc

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Mon Feb 22 20:23:18 2016 +0100

DB IDO: PArtially revert change for *group_members

Otherwise the index breaks.

refs #11103

---

 lib/db_ido/hostdbobject.cpp    |    1 +
 lib/db_ido/servicedbobject.cpp |    1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/db_ido/hostdbobject.cpp b/lib/db_ido/hostdbobject.cpp
index a4c629f..05ee42a 100644
--- a/lib/db_ido/hostdbobject.cpp
+++ b/lib/db_ido/hostdbobject.cpp
@@ -197,6 +197,7 @@ void HostDbObject::OnConfigUpdate(void)
 			query1.Category = DbCatConfig;
 			query1.WhereCriteria = new Dictionary();
 			query1.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */
+			query1.WhereCriteria->Set("hostgroup_id", DbValue::FromObjectInsertID(group));
 			query1.WhereCriteria->Set("host_object_id", host);
 			queries.push_back(query1);
 
diff --git a/lib/db_ido/servicedbobject.cpp b/lib/db_ido/servicedbobject.cpp
index 2f1e55b..e56f5fc 100644
--- a/lib/db_ido/servicedbobject.cpp
+++ b/lib/db_ido/servicedbobject.cpp
@@ -196,6 +196,7 @@ void ServiceDbObject::OnConfigUpdate(void)
 			query1.Category = DbCatConfig;
 			query1.WhereCriteria = new Dictionary();
 			query1.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */
+			query1.WhereCriteria->Set("servicegroup_id", DbValue::FromObjectInsertID(group));
 			query1.WhereCriteria->Set("service_object_id", service);
 			queries.push_back(query1);
 



More information about the icinga-checkins mailing list