mirror of https://github.com/Icinga/icinga2.git
Checkable#ProcessCheckResult(): call Checkable::OnReachabilityChanged less often
Call it only on state changes to reduce no-op Redis/IDO updates a lot. refs #9143
This commit is contained in:
parent
4c38715ef2
commit
2ef3dd6a38
|
@ -508,7 +508,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
|||
}
|
||||
|
||||
/* update reachability for child objects */
|
||||
if (!children.empty())
|
||||
if ((stateChange || hardChange) && !children.empty())
|
||||
OnReachabilityChanged(this, cr, children, origin);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue