Merge branch 'feature/forced-check-now-runtime-attribute-7105' into HEAD

This commit is contained in:
Alexander A. Klimov 2026-01-29 12:26:07 +01:00
commit ff6b162fe4

View file

@ -224,11 +224,6 @@ void CheckerComponent::CheckThreadProc()
lock.unlock();
if (forced) {
ObjectLock olock(checkable);
checkable->SetForceNextCheck(false);
}
Log(LogDebug, "CheckerComponent")
<< "Executing check for '" << checkable->GetName() << "'";
@ -268,6 +263,13 @@ void CheckerComponent::ExecuteCheckHelper(const Checkable::Ptr& checkable)
Log(LogCritical, "checker", output);
}
{
ObjectLock oLock (checkable);
if (checkable->GetForceNextCheck()) {
checkable->SetForceNextCheck(false);
}
}
Checkable::DecreasePendingChecks();
{