MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetCommentIDFromLegacyID

Method GetCommentIDFromLegacyID

lib/icinga/comment.cpp:228–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228String Comment::GetCommentIDFromLegacyID(int id)
229{
230 std::unique_lock<std::mutex> lock(l_CommentMutex);
231
232 auto it = l_LegacyCommentsCache.find(id);
233
234 if (it == l_LegacyCommentsCache.end())
235 return Empty;
236
237 return it->second;
238}
239
240void Comment::CommentsExpireTimerHandler()
241{

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected