Skip to content

Commit

Permalink
Actual actual fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Feb 28, 2024
1 parent 5eae178 commit faef0f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/storage/table/row_group_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,12 +778,13 @@ class VacuumTask : public BaseCheckpointTask {
scan_state.Initialize(column_ids);
scan_state.table_state.Initialize(types);
scan_state.table_state.max_row = idx_t(-1);
idx_t merged_row_groups = 0;
for (idx_t c_idx = segment_idx; merged_row_groups < merge_count && c_idx < vacuum_state.row_group_counts.size();
c_idx++) {
idx_t merged_groups = 0;
idx_t total_row_groups = vacuum_state.row_group_counts.size();
for (idx_t c_idx = segment_idx; merged_groups < merge_count && c_idx < total_row_groups; c_idx++) {
if (vacuum_state.row_group_counts[c_idx] == 0) {
continue;
}
merged_groups++;

auto &current_row_group = *checkpoint_state.segments[c_idx].node;

Expand Down

0 comments on commit faef0f8

Please sign in to comment.