diff --git a/db/table_cache.cc b/db/table_cache.cc index 18b332342b3..560f253847c 100644 --- a/db/table_cache.cc +++ b/db/table_cache.cc @@ -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, diff --git a/table/block_based/block_based_table_factory.cc b/table/block_based/block_based_table_factory.cc index 38dbd83187d..1302ad29fbe 100644 --- a/table/block_based/block_based_table_factory.cc +++ b/table/block_based/block_based_table_factory.cc @@ -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