mirror of https://github.com/Icinga/icinga2.git
Checkable#ProcessCheckResult(): only clean up ack comments older than check result
Normally if for some reason an ack comment still exists on a checkable not acked anymore, still clean it up. But while replaying log config objects incl. ack comments come before check results and acks. I.e. 1) ack comment, 2) DOWN check result and 3) ack. Not 1) DOWN check result, 2) ack and 3) ack comment. So the checkable is temporarily not acked, but already has the ack comment. In this case the DOWN check result which is older than the ack comment shall not clean up the latter.
This commit is contained in:
parent
4662d4477b
commit
6414fd19f5
|
@ -321,7 +321,7 @@ Checkable::ProcessingResult Checkable::ProcessCheckResult(const CheckResult::Ptr
|
|||
olock.Unlock();
|
||||
|
||||
if (remove_acknowledgement_comments)
|
||||
RemoveAckComments();
|
||||
RemoveAckComments(String(), cr->GetExecutionEnd());
|
||||
|
||||
Dictionary::Ptr vars_after = new Dictionary({
|
||||
{ "state", new_state },
|
||||
|
|
Loading…
Reference in New Issue