diff --git a/src/meta/src/hummock/compaction/selector/level_selector.rs b/src/meta/src/hummock/compaction/selector/level_selector.rs index 8ef64772f28eb..f390a80b5f9aa 100644 --- a/src/meta/src/hummock/compaction/selector/level_selector.rs +++ b/src/meta/src/hummock/compaction/selector/level_selector.rs @@ -184,7 +184,7 @@ impl DynamicLevelSelectorCore { ctx.base_level -= 1; cur_level_size /= self.config.max_bytes_for_level_multiplier; } - cur_level_size + std::cmp::max(cur_level_size, base_bytes_max) }; let level_multiplier = self.config.max_bytes_for_level_multiplier as f64;