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

Method getNext

src/jrd/trace/TraceConfigStorage.cpp:905–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905bool ConfigStorage::Accessor::getNext(TraceSession& session, GET_FLAGS getFlag)
906{
907 if (m_guard)
908 return m_storage->getNextSession(session, getFlag, m_nextIdx);
909
910 StorageGuard guard(m_storage);
911
912 // Restore position, if required: find index of slot with session ID greater than m_sesId.
913 if (m_change_number != m_storage->getChangeNumber())
914 {
915 if (m_storage->findSession(m_sesId, m_nextIdx))
916 m_nextIdx++;
917
918 m_change_number = m_storage->getChangeNumber();
919 }
920
921 if (m_storage->getNextSession(session, getFlag, m_nextIdx))
922 {
923 m_sesId = session.ses_id;
924 return true;
925 }
926
927 return false;
928}
929
930void ConfigStorage::Writer::write(ITEM tag, ULONG len, const void* data)
931{

Callers 15

cleanupTransactionsMethod · 0.45
insertRecordMethod · 0.45
updateRecordMethod · 0.45
deleteRecordMethod · 0.45
doInsertMethod · 0.45
doUpdateMethod · 0.45
getBoundConnectionMethod · 0.45
jrdAttachmentEndMethod · 0.45
clearConnectionsMethod · 0.45
cancelConnectionsMethod · 0.45
BufferedStreamMethod · 0.45
internalGetRecordMethod · 0.45

Calls 3

getNextSessionMethod · 0.80
getChangeNumberMethod · 0.80
findSessionMethod · 0.80

Tested by

no test coverage detected