DB IDO: PArtially revert change for *group_members

Otherwise the index breaks.

refs #11103
This commit is contained in:
Michael Friedrich 2016-02-22 20:23:18 +01:00 committed by Gunnar Beutner
parent 2b643640a8
commit 2ec36d20ce
2 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,7 @@ void HostDbObject::OnConfigUpdate(void)
query1.Category = DbCatConfig; query1.Category = DbCatConfig;
query1.WhereCriteria = new Dictionary(); query1.WhereCriteria = new Dictionary();
query1.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */ 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); query1.WhereCriteria->Set("host_object_id", host);
queries.push_back(query1); queries.push_back(query1);

View File

@ -196,6 +196,7 @@ void ServiceDbObject::OnConfigUpdate(void)
query1.Category = DbCatConfig; query1.Category = DbCatConfig;
query1.WhereCriteria = new Dictionary(); query1.WhereCriteria = new Dictionary();
query1.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */ 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); query1.WhereCriteria->Set("service_object_id", service);
queries.push_back(query1); queries.push_back(query1);