Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ GetSnapshot
Method
GetSnapshot
src/leveldb/db/db_impl.cc:1177–1180 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1175
}
1176
1177
const Snapshot* DBImpl::GetSnapshot() {
1178
MutexLock l(&mutex_);
1179
return snapshots_.New(versions_->LastSequence());
1180
}
1181
1182
void DBImpl::ReleaseSnapshot(const Snapshot* snapshot) {
1183
MutexLock l(&mutex_);
Callers
2
TEST
Function · 0.45
leveldb_create_snapshot
Function · 0.45
Calls
2
New
Method · 0.80
LastSequence
Method · 0.80
Tested by
1
TEST
Function · 0.36