From b14e3d152e2a022757b9fc09ae53e50e500c9646 Mon Sep 17 00:00:00 2001 From: v01dstar Date: Wed, 21 Feb 2024 23:05:45 -0800 Subject: [PATCH] Get table prop from table cache without IO Signed-off-by: v01dstar --- db/compaction/compaction.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/compaction/compaction.cc b/db/compaction/compaction.cc index 5629e9ae549..e7dae7a36b6 100644 --- a/db/compaction/compaction.cc +++ b/db/compaction/compaction.cc @@ -554,8 +554,7 @@ std::unique_ptr 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 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);