Skip to content

Commit

Permalink
Change to c++11 supported style
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Zhang <[email protected]>
  • Loading branch information
v01dstar committed Jul 16, 2024
1 parent 63ccba5 commit 37a830a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion table/block_based/block_based_table_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,13 @@ Status BlockBasedTable::PrefetchIndexAndFilterBlocks(

// Find filter handle and filter type
if (rep_->filter_policy) {
for (const auto& [filter_type, prefix] :
for (const auto& pair :
{std::make_pair(Rep::FilterType::kFullFilter, kFullFilterBlockPrefix),
std::make_pair(Rep::FilterType::kPartitionedFilter,
kPartitionedFilterBlockPrefix),
std::make_pair(Rep::FilterType::kBlockFilter, kFilterBlockPrefix)}) {
filter_type = pair.first;
Slice prefix = pair.second;
meta_iter->Seek(prefix);
if (meta_iter->status().ok() && meta_iter->Valid()) {
Slice key = meta_iter->key();
Expand Down

0 comments on commit 37a830a

Please sign in to comment.