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

Method getSession

src/jrd/trace/TraceConfigStorage.cpp:744–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744bool ConfigStorage::getSession(Firebird::TraceSession& session, GET_FLAGS getFlag)
745{
746 ULONG idx;
747 if (!findSession(session.ses_id, idx))
748 return false;
749
750 TraceCSHeader* header = m_sharedMemory->getHeader();
751 TraceCSHeader::Slot* slot = &header->slots[idx];
752
753 if (slot->ses_id != session.ses_id || !slot->used)
754 return false;
755
756 return readSession(slot, session, getFlag);
757}
758
759bool ConfigStorage::getNextSession(TraceSession& session, GET_FLAGS getFlag, ULONG& nextIdx)
760{

Callers 5

stopSessionMethod · 0.80
changeFlagsMethod · 0.80
checkAliveAndFlagsMethod · 0.80
writeMethod · 0.80
update_sessionsMethod · 0.80

Calls 1

getHeaderMethod · 0.45

Tested by

no test coverage detected