Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2023-06-22 14:07:02 -04:00
parent 820685fe92
commit b0b616f3ac

View File

@@ -3865,8 +3865,13 @@ impl Timeline {
// Precondition: only compact if enough layers have accumulated.
let threshold = 8;
assert!(threshold >= 2);
info!("getting tiered compaction task");
layers.dump(false, ctx)?;
if layers.sorted_runs.len() < threshold {
debug!(
info!(
level0_deltas = layers.sorted_runs.len(),
threshold, "too few sorted runs to compact"
);