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

Method getSegment

src/jrd/TempSpace.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183TempSpace::Segment* TempSpace::FreeSegmentBySize::getSegment(FB_SIZE_T size)
184{
185 // Search through the available space in the not used segments list
186 if (m_items.locate(locGreatEqual, size))
187 {
188 SegmentsStack* const cur = &m_items.current();
189 fb_assert(cur->tail);
190 return cur->tail;
191 }
192 return nullptr;
193}
194
195//
196// TempSpace::TempSpace

Callers 1

allocateSpaceMethod · 0.45

Calls 2

locateMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected