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

Method getSnapshotForVersion

src/jrd/Attachment.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74CommitNumber 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

Callers 2

VIO_intermediate_gcFunction · 0.80
TRA_snapshot_stateFunction · 0.80

Calls 2

locateMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected