]> granicus.if.org Git - icinga2/commit
Trigger downtimes for NOT-OK states after OnDowntimeAdded()
authorMichael Friedrich <michael.friedrich@netways.de>
Sun, 12 Apr 2015 12:38:35 +0000 (14:38 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Sun, 12 Apr 2015 12:41:30 +0000 (14:41 +0200)
commite659784a66d9651622487f0a0bb50a509acc134b
tree1426ae830b0f8a4c00ff39174e0cfa59b6542bae
parent876bccd745141d407ffd1d9d5205e27c68dbf043
Trigger downtimes for NOT-OK states after OnDowntimeAdded()

The fix in #8389 must happen *after* adding the downtime which signals an
insert into the IDO DB.
Once the downtimes have been added to the database, the additional
trigger_time and is_in_effect can be updated accordingly, *if* the
current object is already in a NOT-OK state.

fixes #9016
lib/icinga/checkable-downtime.cpp