mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
319b233c6a
commit
f5b4e951f0
@ -88,9 +88,11 @@ void Service::RemoveAllComments(void)
|
||||
std::vector<String> ids;
|
||||
Dictionary::Ptr comments = GetComments();
|
||||
|
||||
ObjectLock olock(comments);
|
||||
BOOST_FOREACH(const Dictionary::Pair& kv, comments) {
|
||||
ids.push_back(kv.first);
|
||||
{
|
||||
ObjectLock olock(comments);
|
||||
BOOST_FOREACH(const Dictionary::Pair& kv, comments) {
|
||||
ids.push_back(kv.first);
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const String& id, ids) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user