mirror of https://github.com/Icinga/icinga2.git
ProcessCheckResult(): Make sure hosts aren't locked during Service::GetSeverity()
This commit is contained in:
parent
338d0aaa8c
commit
ddf1e50d93
|
@ -358,9 +358,12 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||||
SetLastCheckResult(cr);
|
SetLastCheckResult(cr);
|
||||||
|
|
||||||
if (GetProblem() != wasProblem) {
|
if (GetProblem() != wasProblem) {
|
||||||
for (auto& service : host->GetServices()) {
|
auto services = host->GetServices();
|
||||||
|
olock.Unlock();
|
||||||
|
for (auto& service : services) {
|
||||||
Service::OnHostProblemChanged(service, cr, origin);
|
Service::OnHostProblemChanged(service, cr, origin);
|
||||||
}
|
}
|
||||||
|
olock.Lock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue