Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions crates/core/dump/src/compaction/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ impl CompactionAlgorithm {
.is_exceeded(&(candidate.size + group.size));

if state == FileState::Live {
// For live files, only compact if size limit is not exceeded.
// If it's the tail file, also require length limit to be exceeded
// (for cases where a minimum number of segments is desired before compaction).
*size_exceeded
// For live files, compact as long as size limit is not exceeded.
// This allows grouping many small files until they reach the target size.
!*size_exceeded
} else if state == FileState::Hot {
// For hot files, only compact if size limit is not exceeded,
// and both files share the same generation.
Expand Down