mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-23 09:48:05 +02:00
Merge pull request #8168 from Icinga/bugfix/service-get-severity-deadlock-8160-2.12
ProcessCheckResult(): Make sure hosts aren't locked during Service::GetSeverity()
This commit is contained in:
commit
59b013d700
@ -358,9 +358,12 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||
SetLastCheckResult(cr);
|
||||
|
||||
if (GetProblem() != wasProblem) {
|
||||
for (auto& service : host->GetServices()) {
|
||||
auto services = host->GetServices();
|
||||
olock.Unlock();
|
||||
for (auto& service : services) {
|
||||
Service::OnHostProblemChanged(service, cr, origin);
|
||||
}
|
||||
olock.Lock();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user