Skip to content

Commit

Permalink
Get table prop from table cache without IO
Browse files Browse the repository at this point in the history
Signed-off-by: v01dstar <[email protected]>
  • Loading branch information
v01dstar committed Feb 22, 2024
1 parent 3dba9fa commit b14e3d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/compaction/compaction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,7 @@ std::unique_ptr<CompactionFilter> Compaction::CreateCompactionFilter(
for (auto l = inputs_.begin(); l != inputs_.end(); ++l) {
for (auto f = l->files.begin(); f != l->files.end(); ++f) {
std::shared_ptr<const TableProperties> tp;
Status s =
input_version_->GetTableProperties(&tp, *f, nullptr, false /*no_io*/);
Status s = input_version_->GetTableProperties(&tp, *f, nullptr);
assert(s.ok());
context.file_numbers.push_back((*f)->fd.GetNumber());
context.table_properties.push_back(tp);
Expand Down

0 comments on commit b14e3d1

Please sign in to comment.