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

Method locate

src/jrd/recsrc/BufferedStream.cpp:362–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void BufferedStream::locate(thread_db* tdbb, FB_UINT64 position) const
363{
364 Request* const request = tdbb->getRequest();
365 Impure* const impure = request->getImpure<Impure>(m_impure);
366
367 // If we haven't fetched and cached the underlying stream completely, do it now
368 if (impure->irsb_flags & irsb_mustread)
369 {
370 while (this->getRecord(tdbb))
371 ; // no-op
372 fb_assert(!(impure->irsb_flags & irsb_mustread));
373 }
374
375 impure->irsb_position = position;
376}
377
378FB_UINT64 BufferedStream::getCount(thread_db* tdbb) const
379{

Callers 15

getTempBlobIndexFromIdFunction · 0.45
findPageMethod · 0.45
EXE_receiveFunction · 0.45
release_blobsFunction · 0.45
evlBlobAppendFunction · 0.45
releaseSharedMemoryMethod · 0.45
findPageIndexMethod · 0.45
get_undo_dataFunction · 0.45
addSegmentMethod · 0.45
removeSegmentMethod · 0.45
getSegmentMethod · 0.45

Calls 2

getRequestMethod · 0.45
getRecordMethod · 0.45

Tested by

no test coverage detected