Skip to content

Commit

Permalink
fix(test): fix min_overlap panic (#16854)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored May 21, 2024
1 parent 5dc3861 commit abb9a56
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ impl NonOverlapSubLevelPicker {
ret.sstable_infos[0].extend(vec![sst.clone()]);
}

if self.enable_check_task_level_overlap {
self.verify_task_level_overlap(&ret, levels);
}

ret.sstable_infos.retain(|ssts| !ssts.is_empty());

// To check whether the task is expected
Expand Down Expand Up @@ -386,10 +390,6 @@ impl NonOverlapSubLevelPicker {
}
}

if self.enable_check_task_level_overlap {
self.verify_task_level_overlap(&ret, levels);
}

ret
}

Expand Down

0 comments on commit abb9a56

Please sign in to comment.