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:
Alexander A. Klimov 2022-02-03 11:12:53 +01:00 committed by Yonas Habteab
parent 4ea65076b0
commit 88b041c7c9

View File

@ -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);
}