String id;
BOOST_FOREACH(boost::tie(id, boost::tuples::ignore), comments) {
- addRowFn(id);
+ if (Service::GetOwnerByCommentID(id) == service)
+ addRowFn(id);
}
}
}
String id;
BOOST_FOREACH(boost::tie(id, boost::tuples::ignore), downtimes) {
- addRowFn(id);
+ if (Service::GetOwnerByDowntimeID(id) == service)
+ addRowFn(id);
}
}
}
Touch("comments");
}
+ {
+ boost::mutex::scoped_lock lock(l_CommentMutex);
+ l_CommentsCache[id] = GetSelf();
+ }
+
return id;
}
(void) AddComment(CommentDowntime, author, comment, endTime);
+ {
+ boost::mutex::scoped_lock lock(l_DowntimeMutex);
+ l_DowntimesCache[id] = GetSelf();
+ }
+
return id;
}