mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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
4ea65076b0
commit
88b041c7c9
@ -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…
x
Reference in New Issue
Block a user