Skip to content

Commit

Permalink
chore(storage): hook compact avoid scan all segments (#16954)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass authored Nov 27, 2024
1 parent d0c9175 commit b6ff044
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl BlockCompactMutator {
self.ctx.set_status_info(&status);
}

if is_end {
if is_end || segment_idx >= num_segment_limit {
break;
}
}
Expand Down

0 comments on commit b6ff044

Please sign in to comment.