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

Method getNextSession

src/jrd/trace/TraceConfigStorage.cpp:759–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759bool ConfigStorage::getNextSession(TraceSession& session, GET_FLAGS getFlag, ULONG& nextIdx)
760{
761 TraceCSHeader* header = m_sharedMemory->getHeader();
762
763 while (nextIdx < header->slots_cnt)
764 {
765 TraceCSHeader::Slot* slot = header->slots + nextIdx;
766 nextIdx++;
767
768 if (slot->used)
769 return readSession(slot, session, getFlag);
770 }
771 return false;
772}
773
774bool ConfigStorage::readSession(TraceCSHeader::Slot* slot, TraceSession& session, GET_FLAGS getFlag)
775{

Callers 1

getNextMethod · 0.80

Calls 1

getHeaderMethod · 0.45

Tested by

no test coverage detected