icinga2/lib/db_ido
Julian Brost 7c9d0fff01 IDO: use per-instance notification_id in history
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.
2022-02-10 16:36:35 +01:00
..
CMakeLists.txt
commanddbobject.cpp
commanddbobject.hpp
db_ido-itl.conf
dbconnection.cpp IDO: use per-instance notification_id in history 2022-02-10 16:36:35 +01:00
dbconnection.hpp Merge pull request #8855 from Icinga/bugfix/inconsistent-ido-schema-versions-8852 2021-07-14 18:09:27 +02:00
dbconnection.ti Improve DB IDO HA failover behaviour 2019-04-01 08:50:00 +02:00
dbevents.cpp IDO: use per-instance notification_id in history 2022-02-10 16:36:35 +01:00
dbevents.hpp Revert "Make NotificationResult available for events: Cluster and Features" 2020-01-07 14:20:59 +01:00
dbobject.cpp IDO: use per-instance notification_id in history 2022-02-10 16:36:35 +01:00
dbobject.hpp IDO: use per-instance notification_id in history 2022-02-10 16:36:35 +01:00
dbquery.cpp
dbquery.hpp
dbreference.cpp
dbreference.hpp
dbtype.cpp Use std::mutex, not boost::mutex 2021-02-03 09:54:57 +01:00
dbtype.hpp Use std::mutex, not boost::mutex 2021-02-03 09:54:57 +01:00
dbvalue.cpp
dbvalue.hpp
endpointdbobject.cpp Replace std/boost::bind() function with lambda expression 2021-03-10 16:29:40 +01:00
endpointdbobject.hpp
hostdbobject.cpp *DbObject#CalculateConfigHash(): sort groups to be hashed 2020-10-13 13:47:49 +02:00
hostdbobject.hpp
hostgroupdbobject.cpp
hostgroupdbobject.hpp
i2-db_ido.hpp
idochecktask.cpp IdoCheckTask: de-couple MySQL and Postgres schema versions 2021-07-05 19:14:07 +02:00
idochecktask.hpp
servicedbobject.cpp *DbObject#CalculateConfigHash(): sort groups to be hashed 2020-10-13 13:47:49 +02:00
servicedbobject.hpp
servicegroupdbobject.cpp
servicegroupdbobject.hpp
timeperioddbobject.cpp
timeperioddbobject.hpp
userdbobject.cpp *DbObject#CalculateConfigHash(): sort groups to be hashed 2020-10-13 13:47:49 +02:00
userdbobject.hpp
usergroupdbobject.cpp
usergroupdbobject.hpp
zonedbobject.cpp
zonedbobject.hpp