mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
Revert "IDO: customvariables: fix duplicate entry error"
This reverts commit bd2b565a1c6a76cc5fdc479ce8e816a7386ed193.
This commit is contained in:
parent
f013884f1c
commit
06d2117945
@ -234,9 +234,8 @@ void DbObject::SendVarsConfigUpdateHeavy()
|
|||||||
|
|
||||||
DbQuery query3;
|
DbQuery query3;
|
||||||
query3.Table = "customvariables";
|
query3.Table = "customvariables";
|
||||||
query3.Type = DbQueryInsert | DbQueryUpdate;
|
query3.Type = DbQueryInsert;
|
||||||
query3.Category = DbCatConfig;
|
query3.Category = DbCatConfig;
|
||||||
|
|
||||||
query3.Fields = new Dictionary({
|
query3.Fields = new Dictionary({
|
||||||
{ "varname", kv.first },
|
{ "varname", kv.first },
|
||||||
{ "varvalue", value },
|
{ "varvalue", value },
|
||||||
@ -245,13 +244,6 @@ void DbObject::SendVarsConfigUpdateHeavy()
|
|||||||
{ "object_id", obj },
|
{ "object_id", obj },
|
||||||
{ "instance_id", 0 } /* DbConnection class fills in real ID */
|
{ "instance_id", 0 } /* DbConnection class fills in real ID */
|
||||||
});
|
});
|
||||||
|
|
||||||
query3.WhereCriteria = new Dictionary({
|
|
||||||
{ "object_id", obj },
|
|
||||||
{ "config_type", 1 },
|
|
||||||
{ "varname", kv.first }
|
|
||||||
});
|
|
||||||
|
|
||||||
queries.emplace_back(std::move(query3));
|
queries.emplace_back(std::move(query3));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user