mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 15:14:07 +02:00
Release checker mutex before writing log message.
This commit is contained in:
parent
0c9f635c46
commit
1375c64ad9
@ -158,6 +158,7 @@ void CheckerComponent::ExecuteCheckHelper(const Service::Ptr& service)
|
|||||||
Log(LogCritical, "checker", "Exception occured while checking service '" + service->GetName() + "': " + boost::diagnostic_information(ex));
|
Log(LogCritical, "checker", "Exception occured while checking service '" + service->GetName() + "': " + boost::diagnostic_information(ex));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
boost::mutex::scoped_lock lock(m_Mutex);
|
boost::mutex::scoped_lock lock(m_Mutex);
|
||||||
|
|
||||||
/* remove the service from the list of pending services; if it's not in the
|
/* remove the service from the list of pending services; if it's not in the
|
||||||
@ -170,6 +171,7 @@ void CheckerComponent::ExecuteCheckHelper(const Service::Ptr& service)
|
|||||||
m_IdleServices.insert(service);
|
m_IdleServices.insert(service);
|
||||||
m_CV.notify_all();
|
m_CV.notify_all();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Log(LogDebug, "checker", "Check finished for service '" + service->GetName() + "'");
|
Log(LogDebug, "checker", "Check finished for service '" + service->GetName() + "'");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user