| 63 | |
| 64 | |
| 65 | void 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 | |
| 86 | GarbageCollector::~GarbageCollector() |
no test coverage detected