Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hx235 committed Aug 23, 2023
1 parent 0fe1942 commit 54108a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/compaction/compaction_picker_universal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class UniversalCompactionBuilder {
Compaction* PickPeriodicCompaction();

bool ShouldSkipLastSortedRunForSizeAmpCompaction() {
assert(!sorted_runs_.empty());
return ioptions_.preclude_last_level_data_seconds > 0 &&
ioptions_.num_levels > 2 &&
sorted_runs_.back().level == ioptions_.num_levels - 1 &&
Expand Down Expand Up @@ -783,7 +784,7 @@ Compaction* UniversalCompactionBuilder::PickCompactionToReduceSortedRuns(
}

// Look at overall size amplification. If size amplification
// exceeeds the configured value, then do a compaction
// exceeds the configured value, then do a compaction
// on longest span of candidate files without conflict with other compactions
// ending at the earliest base file (overriding configured values of file-size
// ratios, min_merge_width and max_merge_width).
Expand Down

0 comments on commit 54108a3

Please sign in to comment.