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 2, 2023
1 parent 85aa0b1 commit 7ec4e4b
Showing 1 changed file with 2 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

0 comments on commit 7ec4e4b

Please sign in to comment.