From 7ec4e4bcf369a41b53fea3d1aa8b8304c06316be Mon Sep 17 00:00:00 2001 From: Hui Xiao Date: Tue, 2 May 2023 12:26:10 -0700 Subject: [PATCH] Fix a bug --- db/table_cache.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/table_cache.cc b/db/table_cache.cc index 18b332342b32..560f253847c2 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,