mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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
c160c4b62e
commit
6dffc57a37
@ -319,7 +319,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||
olock.Unlock();
|
||||
|
||||
if (remove_acknowledgement_comments)
|
||||
RemoveAckComments();
|
||||
RemoveAckComments(String(), cr->GetExecutionEnd());
|
||||
|
||||
Dictionary::Ptr vars_after = new Dictionary({
|
||||
{ "state", new_state },
|
||||
|
Loading…
x
Reference in New Issue
Block a user