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 Replace Copyright header with a short version, part II 2019-02-25 15:09:36 +01:00
commanddbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
commanddbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
db_ido-itl.conf Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
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 Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbquery.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbreference.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbreference.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
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 Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbvalue.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
endpointdbobject.cpp Replace std/boost::bind() function with lambda expression 2021-03-10 16:29:40 +01:00
endpointdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostdbobject.cpp *DbObject#CalculateConfigHash(): sort groups to be hashed 2020-10-13 13:47:49 +02:00
hostdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostgroupdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostgroupdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
i2-db_ido.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
idochecktask.cpp IdoCheckTask: de-couple MySQL and Postgres schema versions 2021-07-05 19:14:07 +02:00
idochecktask.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
servicedbobject.cpp *DbObject#CalculateConfigHash(): sort groups to be hashed 2020-10-13 13:47:49 +02:00
servicedbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
servicegroupdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
servicegroupdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
timeperioddbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
timeperioddbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
userdbobject.cpp *DbObject#CalculateConfigHash(): sort groups to be hashed 2020-10-13 13:47:49 +02:00
userdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
usergroupdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
usergroupdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
zonedbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
zonedbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00