Merge pull request #7608 from Icinga/bugfix/icinga-history-stream-downtime

IcingaDB: avoid duplicates in icinga:history:stream:downtime
This commit is contained in:
Noah Hilverling 2019-11-12 11:40:45 +01:00 committed by GitHub
commit fa892b613d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,9 +71,7 @@ void IcingaDB::ConfigStaticInitialize()
IcingaDB::VersionChangedHandler(object); IcingaDB::VersionChangedHandler(object);
}); });
/* fixed downtime start */ /* downtime start */
Downtime::OnDowntimeStarted.connect(&IcingaDB::DowntimeStartedHandler);
/* flexible downtime start */
Downtime::OnDowntimeTriggered.connect(&IcingaDB::DowntimeStartedHandler); Downtime::OnDowntimeTriggered.connect(&IcingaDB::DowntimeStartedHandler);
/* fixed/flexible downtime end or remove */ /* fixed/flexible downtime end or remove */
Downtime::OnDowntimeRemoved.connect(&IcingaDB::DowntimeRemovedHandler); Downtime::OnDowntimeRemoved.connect(&IcingaDB::DowntimeRemovedHandler);