mirror of https://github.com/Icinga/icinga2.git
When there are multiple active IDO instances on the same node, before this commit, all of them would share a single DbValue object for the notification_id column of the icinga_contactnotifications table. This resulted in the issue that one database references the notification_id in another database. This commit fixes this by using a separate DbValue value for each IDO instance. This needs a new signal as the existing OnQuery and OnMultipleQueries signals perform the same queries on all IDO instances, but different queries are needed here per instance (they only differ in the referenced DbValue). Therefore, a new signal OnMakeQueries is added that takes a std::function which is called once per IDO instance and can access callbacks to perform one or multiple queries only on this specific IDO instance. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
commanddbobject.cpp | ||
commanddbobject.hpp | ||
db_ido-itl.conf | ||
dbconnection.cpp | ||
dbconnection.hpp | ||
dbconnection.ti | ||
dbevents.cpp | ||
dbevents.hpp | ||
dbobject.cpp | ||
dbobject.hpp | ||
dbquery.cpp | ||
dbquery.hpp | ||
dbreference.cpp | ||
dbreference.hpp | ||
dbtype.cpp | ||
dbtype.hpp | ||
dbvalue.cpp | ||
dbvalue.hpp | ||
endpointdbobject.cpp | ||
endpointdbobject.hpp | ||
hostdbobject.cpp | ||
hostdbobject.hpp | ||
hostgroupdbobject.cpp | ||
hostgroupdbobject.hpp | ||
i2-db_ido.hpp | ||
idochecktask.cpp | ||
idochecktask.hpp | ||
servicedbobject.cpp | ||
servicedbobject.hpp | ||
servicegroupdbobject.cpp | ||
servicegroupdbobject.hpp | ||
timeperioddbobject.cpp | ||
timeperioddbobject.hpp | ||
userdbobject.cpp | ||
userdbobject.hpp | ||
usergroupdbobject.cpp | ||
usergroupdbobject.hpp | ||
zonedbobject.cpp | ||
zonedbobject.hpp |