Lines Matching refs:level

516   int level = 0;  in WriteLevel0Table()  local
521 level = base->PickLevelForMemTableOutput(min_user_key, max_user_key); in WriteLevel0Table()
523 edit->AddFile(level, meta.number, meta.file_size, in WriteLevel0Table()
530 stats_[level].Add(stats); in WriteLevel0Table()
572 for (int level = 1; level < config::kNumLevels; level++) { in CompactRange() local
573 if (base->OverlapInLevel(level, begin, end)) { in CompactRange()
574 max_level_with_files = level; in CompactRange()
579 for (int level = 0; level < max_level_with_files; level++) { in CompactRange() local
580 TEST_CompactRange(level, begin, end); in CompactRange()
584 void DBImpl::TEST_CompactRange(int level, const Slice* begin,const Slice* end) { in TEST_CompactRange() argument
585 assert(level >= 0); in TEST_CompactRange()
586 assert(level + 1 < config::kNumLevels); in TEST_CompactRange()
591 manual.level = level; in TEST_CompactRange()
699 c = versions_->CompactRange(m->level, m->begin, m->end); in BackgroundCompaction()
706 m->level, in BackgroundCompaction()
721 c->edit()->DeleteFile(c->level(), f->number); in BackgroundCompaction()
722 c->edit()->AddFile(c->level() + 1, f->number, f->file_size, in BackgroundCompaction()
731 c->level() + 1, in BackgroundCompaction()
857 compact->compaction->level(), in FinishCompactionOutputFile()
870 compact->compaction->level(), in InstallCompactionResults()
872 compact->compaction->level() + 1, in InstallCompactionResults()
877 const int level = compact->compaction->level(); in InstallCompactionResults() local
881 level + 1, in InstallCompactionResults()
893 compact->compaction->level(), in DoCompactionWork()
895 compact->compaction->level() + 1); in DoCompactionWork()
897 assert(versions_->NumLevelFiles(compact->compaction->level()) > 0); in DoCompactionWork()
1034 stats_[compact->compaction->level() + 1].Add(stats); in DoCompactionWork()
1392 uint64_t level; in GetProperty() local
1393 bool ok = ConsumeDecimalNumber(&in, &level) && in.empty(); in GetProperty()
1394 if (!ok || level >= config::kNumLevels) { in GetProperty()
1399 versions_->NumLevelFiles(static_cast<int>(level))); in GetProperty()
1411 for (int level = 0; level < config::kNumLevels; level++) { in GetProperty() local
1412 int files = versions_->NumLevelFiles(level); in GetProperty()
1413 if (stats_[level].micros > 0 || files > 0) { in GetProperty()
1417 level, in GetProperty()
1419 versions_->NumLevelBytes(level) / 1048576.0, in GetProperty()
1420 stats_[level].micros / 1e6, in GetProperty()
1421 stats_[level].bytes_read / 1048576.0, in GetProperty()
1422 stats_[level].bytes_written / 1048576.0); in GetProperty()