Skip to content

Commit

Permalink
fix(storage): fix skip delete range in uncommitted files (#8009)
Browse files Browse the repository at this point in the history
Approved-By: Li0k
  • Loading branch information
Little-Wallace authored Feb 22, 2023
1 parent 864fb46 commit 8619b11
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/storage/src/hummock/store/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,18 +555,19 @@ impl HummockVersionReader {
.sstable(sstable_info, &mut local_stats)
.in_span(Span::enter_with_local_parent("get_sstable"))
.await?;
if let Some(prefix_hash) = bloom_filter_prefix_hash.as_ref() {
if !hit_sstable_bloom_filter(table_holder.value(), *prefix_hash, &mut local_stats) {
continue;
}
}

if !table_holder.value().meta.range_tombstone_list.is_empty()
&& !read_options.ignore_range_tombstone
{
delete_range_iter
.add_sst_iter(SstableDeleteRangeIterator::new(table_holder.clone()));
}
if let Some(prefix_hash) = bloom_filter_prefix_hash.as_ref() {
if !hit_sstable_bloom_filter(table_holder.value(), *prefix_hash, &mut local_stats) {
continue;
}
}

staging_sst_iter_count += 1;
staging_iters.push(HummockIteratorUnion::Second(SstableIterator::new(
table_holder,
Expand Down

0 comments on commit 8619b11

Please sign in to comment.