| 742 | } |
| 743 | |
| 744 | bool 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 | |
| 759 | bool ConfigStorage::getNextSession(TraceSession& session, GET_FLAGS getFlag, ULONG& nextIdx) |
| 760 | { |
no test coverage detected