Skip to content

Commit b6ff044

Browse files
authored
chore(storage): hook compact avoid scan all segments (#16954)
1 parent d0c9175 commit b6ff044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query/storages/fuse/src/operations/mutation/mutator/block_compact_mutator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl BlockCompactMutator {
168168
self.ctx.set_status_info(&status);
169169
}
170170

171-
if is_end {
171+
if is_end || segment_idx >= num_segment_limit {
172172
break;
173173
}
174174
}

0 commit comments

Comments
 (0)