From: Michael Friedrich Date: Mon, 22 Feb 2016 19:23:18 +0000 (+0100) Subject: DB IDO: PArtially revert change for *group_members X-Git-Tag: v2.5.0~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b30c9ed2c77d292e971a03bd2a6842b4de9ecbc;p=icinga2 DB IDO: PArtially revert change for *group_members Otherwise the index breaks. refs #11103 --- diff --git a/lib/db_ido/hostdbobject.cpp b/lib/db_ido/hostdbobject.cpp index a4c629ff7..05ee42a65 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 2f1e55bc3..e56f5fceb 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);