Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hx235 committed May 5, 2023
1 parent a7a527f commit 9c88bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/table_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ Status TableCache::GetTableReader(
max_file_size_for_l0_meta_pin, db_session_id_,
file_meta.fd.GetNumber(), expected_unique_id,
file_meta.fd.largest_seqno, file_meta.tail_start_offset,
file_meta.num_entries == file_meta.num_range_deletions
file_meta.num_entries > 0 &&
(file_meta.num_entries == file_meta.num_range_deletions)
? true
: false /* contain_no_data_block */),
std::move(file_reader), file_meta.fd.GetFileSize(), table_reader,
Expand Down
1 change: 1 addition & 0 deletions table/block_based/block_based_table_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ size_t TailPrefetchStats::GetSuggestedPrefetchSize() {
return std::min(kMaxPrefetchSize, max_qualified_size);
}


const std::string kOptNameMetadataCacheOpts = "metadata_cache_options";

static std::unordered_map<std::string, PinningTier>
Expand Down

0 comments on commit 9c88bee

Please sign in to comment.