From 2ec36d20ce4943dc901b593b5c4f9f94abbd7db7 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 22 Feb 2016 20:23:18 +0100 Subject: [PATCH] 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 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); -- 2.40.0