Skip to content

Commit

Permalink
Reset Checkable#force_next_check after starting check plugin
Browse files Browse the repository at this point in the history
... so this attribute is available for the plugin.

refs #7105
  • Loading branch information
Al2Klimov committed Jan 31, 2025
1 parent d55c364 commit 07cc4b8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/checker/checkercomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,6 @@ void CheckerComponent::CheckThreadProc()

lock.unlock();

if (forced) {
ObjectLock olock(checkable);
checkable->SetForceNextCheck(false);
}

Log(LogDebug, "CheckerComponent")
<< "Executing check for '" << checkable->GetName() << "'";

Expand Down Expand Up @@ -249,6 +244,13 @@ void CheckerComponent::ExecuteCheckHelper(const Checkable::Ptr& checkable)
Log(LogCritical, "checker", output);
}

{
ObjectLock oLock (checkable);
if (checkable->GetForceNextCheck()) {
checkable->SetForceNextCheck(false);
}
}

Checkable::DecreasePendingChecks();

{
Expand Down

0 comments on commit 07cc4b8

Please sign in to comment.