mirror of https://github.com/Icinga/icinga2.git
DB IDO: PArtially revert change for *group_members
Otherwise the index breaks. refs #11103
This commit is contained in:
parent
2b643640a8
commit
2ec36d20ce
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue