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

Method AppendVersion

src/leveldb/db/version_set.cc:761–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761void VersionSet::AppendVersion(Version* v) {
762 // Make "v" current
763 assert(v->refs_ == 0);
764 assert(v != current_);
765 if (current_ != nullptr) {
766 current_->Unref();
767 }
768 current_ = v;
769 v->Ref();
770
771 // Append to linked list
772 v->prev_ = dummy_versions_.prev_;
773 v->next_ = &dummy_versions_;
774 v->prev_->next_ = v;
775 v->next_->prev_ = v;
776}
777
778Status VersionSet::LogAndApply(VersionEdit* edit, port::Mutex* mu) {
779 if (edit->has_log_number_) {

Callers

nothing calls this directly

Calls 2

UnrefMethod · 0.45
RefMethod · 0.45

Tested by

no test coverage detected