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.4.2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ec36d20ce4943dc901b593b5c4f9f94abbd7db7;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);