Lines Matching refs:level
87 comp_inputs->level = 0; in FindIntraL0Compaction()
104 int level, int base_level, in GetCompressionType() argument
114 level >= (vstorage->num_non_empty_levels() - 1)) { in GetCompressionType()
120 assert(level == 0 || level >= base_level); in GetCompressionType()
121 int idx = (level == 0) ? 0 : level - base_level + 1; in GetCompressionType()
137 int level, in GetCompressionOptions() argument
146 level >= (vstorage->num_non_empty_levels() - 1) && in GetCompressionOptions()
170 const int level = inputs.level; in GetRange() local
175 if (level == 0) { in GetRange()
249 const int level = inputs->level; in ExpandInputsToCleanCut() local
252 if (level == 0) { in ExpandInputsToCleanCut()
267 vstorage->GetOverlappingInputs(level, &smallest, &largest, &inputs->files, in ExpandInputsToCleanCut()
286 int level) const { in RangeOverlapWithCompaction()
289 if (c->output_level() == level && in RangeOverlapWithCompaction()
301 const std::vector<CompactionInputFiles>& inputs, int level) const { in FilesRangeOverlapWithCompaction()
317 level); in FilesRangeOverlapWithCompaction()
385 for (int level = 0; level < vstorage->num_levels(); ++level) { in GetCompactionInputsFromFileNumbers() local
386 for (auto file : vstorage->LevelFiles(level)) { in GetCompactionInputsFromFileNumbers()
389 matched_input_files[level].files.push_back(file); in GetCompactionInputsFromFileNumbers()
391 last_non_empty_level = level; in GetCompactionInputsFromFileNumbers()
393 first_non_empty_level = level; in GetCompactionInputsFromFileNumbers()
409 for (int level = first_non_empty_level; level <= last_non_empty_level; in GetCompactionInputsFromFileNumbers() local
410 ++level) { in GetCompactionInputsFromFileNumbers()
411 matched_input_files[level].level = level; in GetCompactionInputsFromFileNumbers()
412 input_files->emplace_back(std::move(matched_input_files[level])); in GetCompactionInputsFromFileNumbers()
422 int level, int* level_index) { in IsRangeInCompaction() argument
424 assert(level < NumberLevels()); in IsRangeInCompaction()
426 vstorage->GetOverlappingInputs(level, smallest, largest, &inputs, in IsRangeInCompaction()
448 const int input_level = inputs->level; in SetupOtherInputs()
449 const int output_level = output_level_inputs->level; in SetupOtherInputs()
493 expanded_inputs.level = input_level; in SetupOtherInputs()
511 expanded_output_level_inputs.level = output_level; in SetupOtherInputs()
558 if (output_level_inputs.level + 1 < NumberLevels()) { in GetGrandparents()
559 vstorage->GetOverlappingInputs(output_level_inputs.level + 1, &start, in GetGrandparents()
607 for (int level = start_level; level < vstorage->num_levels(); level++) { in CompactRange() local
608 inputs[level - start_level].level = level; in CompactRange()
609 auto& files = inputs[level - start_level].files; in CompactRange()
610 for (FileMetaData* f : vstorage->LevelFiles(level)) { in CompactRange()
645 inputs.level = input_level; in CompactRange()
745 output_level_inputs.level = output_level; in CompactRange()
972 cf_meta.levels[cf_meta.levels.size() - 1].level); in SanitizeCompactionInputFiles()
977 ToString(cf_meta.levels[cf_meta.levels.size() - 1].level) + "]."); in SanitizeCompactionInputFiles()
1080 start_level_inputs->level = *start_level; in PickFilesMarkedForCompaction()