| 37 | |
| 38 | |
| 39 | TraNumber 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 | |
| 54 | TraNumber GarbageCollector::RelationData::addPage(const ULONG pageno, const TraNumber tranid) |
| 55 | { |