| 72 | |
| 73 | |
| 74 | CommitNumber ActiveSnapshots::getSnapshotForVersion(CommitNumber version_cn) |
| 75 | { |
| 76 | if (version_cn > m_lastCommit) |
| 77 | return CN_ACTIVE; |
| 78 | |
| 79 | if (m_snapshots.locate(locGreatEqual, version_cn)) |
| 80 | return m_snapshots.current(); |
| 81 | |
| 82 | return m_lastCommit; |
| 83 | } |
| 84 | |
| 85 | |
| 86 | /// class Attachment |
no test coverage detected