MCPcopy Create free account
hub / github.com/ElementsProject/elements / Unref

Method Unref

src/leveldb/db/version_set.cc:456–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454void Version::Ref() { ++refs_; }
455
456void Version::Unref() {
457 assert(this != &vset_->dummy_versions_);
458 assert(refs_ >= 1);
459 --refs_;
460 if (refs_ == 0) {
461 delete this;
462 }
463}
464
465bool Version::OverlapInLevel(int level, const Slice* smallest_user_key,
466 const Slice* largest_user_key) {

Callers 13

PrintContentsFunction · 0.45
~DBImplMethod · 0.45
RecoverLogFileMethod · 0.45
CompactMemTableMethod · 0.45
CleanupIteratorStateFunction · 0.45
GetMethod · 0.45
GetApproximateSizesMethod · 0.45
ConvertLogToTableMethod · 0.45
~BuilderMethod · 0.45
~VersionSetMethod · 0.45
AppendVersionMethod · 0.45
~CompactionMethod · 0.45

Calls

no outgoing calls

Tested by 1

PrintContentsFunction · 0.36