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

Method swept

src/jrd/GarbageCollector.cpp:65–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65void GarbageCollector::RelationData::swept(const TraNumber oldest_snapshot, PageBitmap** bm)
66{
67 PageTranMap::Accessor pages(&m_pages);
68
69 bool next = pages.getFirst();
70 while (next)
71 {
72 if (pages.current().tranid < oldest_snapshot)
73 {
74 if (bm)
75 {
76 PBM_SET(&m_pool, bm, pages.current().pageno);
77 }
78 next = pages.fastRemove();
79 }
80 else
81 next = pages.getNext();
82 }
83}
84
85
86GarbageCollector::~GarbageCollector()

Callers 2

getPagesMethod · 0.80
sweptRelationMethod · 0.80

Calls 4

getFirstMethod · 0.45
currentMethod · 0.45
fastRemoveMethod · 0.45
getNextMethod · 0.45

Tested by

no test coverage detected