mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-03 11:54:30 +02:00
parent
9d97094390
commit
48fa1a1418
@ -475,6 +475,11 @@ void DbEvents::AddDowntimes(const Checkable::Ptr& checkable)
|
|||||||
|
|
||||||
void DbEvents::AddDowntime(const Checkable::Ptr& checkable, const Downtime::Ptr& downtime)
|
void DbEvents::AddDowntime(const Checkable::Ptr& checkable, const Downtime::Ptr& downtime)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* make sure to delete any old downtime to avoid multiple inserts from
|
||||||
|
* configured ScheduledDowntime dumps and CreateNextDowntime() calls
|
||||||
|
*/
|
||||||
|
RemoveDowntime(checkable, downtime);
|
||||||
AddDowntimeInternal(checkable, downtime, false);
|
AddDowntimeInternal(checkable, downtime, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user