db/version_set.cc
// Initialize a builder with the files from *base and other info from *vset
Initialize a builder with the files from *base and other info from *vset
Initialize a builder with the files from * base and other info from * vset
Builder(VersionSet* vset, Version* base) : vset_(vset), base_(base) {
    base_->Ref();
    BySetSmallestKey set_cmp;
    ByFileSmallestKey file_cmp;
    set_cmp.internal_comparator = &vset_->icmp_;
    file_cmp.internal_comparator = &vset_->icmp_;
    for (int level = 0; level < config::kNumLevels; level++) {
      levels_[level].added_files = new FileSet(file_cmp);
      levels_[level].added_vlogs = new FileSet(file_cmp);
      levels_[level].added_sets = new SetSet(set_cmp);
    }
  }
Builder ( VersionSet * vset , Version * base ) : vset_ ( vset ) , base_ ( base ) { base_ -> Ref ( ) ; BySetSmallestKey set_cmp ; ByFileSmallestKey file_cmp ; set_cmp . internal_comparator = & vset_ -> icmp_ ; file_cmp . internal_comparator = & vset_ -> icmp_ ; for ( int level = 0 ; level < config :: kNumLevels ; level ++ ) { levels_ [ level ] . added_files = new FileSet ( file_cmp ) ; levels_ [ level ] . added_vlogs = new FileSet ( file_cmp ) ; levels_ [ level ] . added_sets = new SetSet ( set_cmp ) ; } }
Initialize a builder with the files from *base and other info from *vset
Initialize a builder with the files from * base and other info from * vset
// ByVLogLargestKey vlog_cmp; // vlog_cmp.internal_comparator = &vset_->icmp_;