mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-07 05:44:28 +02:00
Merge pull request #8165 from Icinga/bugfix/service-get-severity-deadlock-8160
ProcessCheckResult(): Make sure hosts aren't locked during Service::GetSeverity()
This commit is contained in:
commit
9dd197d0af
@ -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…
x
Reference in New Issue
Block a user