MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / checkAliveAndFlags

Method checkAliveAndFlags

src/jrd/trace/TraceService.cpp:319–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319bool TraceSvcJrd::checkAliveAndFlags(ULONG sesId, int& flags)
320{
321 ConfigStorage* storage = TraceManager::getStorage();
322
323 bool alive = (m_chg_number == storage->getChangeNumber());
324 if (!alive)
325 {
326 // look if our session still alive
327 StorageGuard guard(storage);
328
329 TraceSession readSession(*getDefaultMemoryPool());
330 readSession.ses_id = sesId;
331 if (storage->getSession(readSession, ConfigStorage::FLAGS))
332 {
333 flags = readSession.ses_flags;
334 alive = true;
335 }
336
337 m_chg_number = storage->getChangeNumber();
338 }
339
340 return alive;
341}
342
343bool TraceSvcJrd::checkPrivileges(TraceSession& session)
344{

Callers

nothing calls this directly

Calls 3

getDefaultMemoryPoolFunction · 0.85
getChangeNumberMethod · 0.80
getSessionMethod · 0.80

Tested by

no test coverage detected