mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +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
4c38715ef2
commit
2ef3dd6a38
@ -508,7 +508,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* update reachability for child objects */
|
/* update reachability for child objects */
|
||||||
if (!children.empty())
|
if ((stateChange || hardChange) && !children.empty())
|
||||||
OnReachabilityChanged(this, cr, children, origin);
|
OnReachabilityChanged(this, cr, children, origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user