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
parent 4c38715ef2
commit 2ef3dd6a38
1 changed files with 1 additions and 1 deletions

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