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

Method findPage

src/jrd/GarbageCollector.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39TraNumber GarbageCollector::RelationData::findPage(const ULONG pageno, const TraNumber tranid)
40{
41 PageTranMap::Accessor pages(&m_pages);
42 if (!pages.locate(pageno))
43 return MAX_TRA_NUMBER;
44
45 // hvlad: this routine could be guarded by shared sync - therefore comparison
46 // and assignment below should be atomic operation. But we don't require
47 // exact precision here.
48 if (pages.current().tranid > tranid)
49 pages.current().tranid = tranid;
50
51 return pages.current().tranid;
52}
53
54TraNumber GarbageCollector::RelationData::addPage(const ULONG pageno, const TraNumber tranid)
55{

Callers 1

addPageMethod · 0.80

Calls 2

locateMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected