mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fix missing lock and clear ack comments in RemoveHostAcknowledgement().
This commit is contained in:
parent
1d32c5b2d3
commit
bcc17be2ca
@ -733,8 +733,13 @@ void ExternalCommandProcessor::RemoveHostAcknowledgement(double, const std::vect
|
||||
|
||||
Log(LogInformation, "icinga", "Removing acknowledgement for host '" + host->GetName() + "'");
|
||||
Service::Ptr service = host->GetCheckService();
|
||||
if (service)
|
||||
service->ClearAcknowledgement();
|
||||
if (service) {
|
||||
{
|
||||
ObjectLock olock(service);
|
||||
service->ClearAcknowledgement();
|
||||
}
|
||||
service->RemoveCommentsByType(CommentAcknowledgement);
|
||||
}
|
||||
}
|
||||
|
||||
void ExternalCommandProcessor::EnableHostgroupSvcChecks(double, const std::vector<String>& arguments)
|
||||
|
Loading…
x
Reference in New Issue
Block a user