From fc9d46b687d616f3265971746ff3f476ee0b660d Mon Sep 17 00:00:00 2001 From: littlepig2013 Date: Tue, 8 Oct 2024 21:42:22 -0400 Subject: [PATCH] minor tuning minimum number of point reads --- db/compaction/compaction.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/compaction/compaction.cc b/db/compaction/compaction.cc index b32c0d6..cee2ff0 100644 --- a/db/compaction/compaction.cc +++ b/db/compaction/compaction.cc @@ -400,10 +400,10 @@ Compaction::Compaction( input_vstorage_->LevelFiles(output_level_)) { max_num_entries_in_output_level_ += meta->num_entries - meta->num_range_deletions; - // auto result = - // meta->stats.GetEstimatedNumPointReads(vstorage->GetAccumulatedNumPointReads(), - // immutable_options_.point_read_learning_rate); min_num_point_reads_ = - // std::min(min_num_point_reads_, result.first); + auto result = meta->stats.GetEstimatedNumPointReads( + vstorage->GetAccumulatedNumPointReads(), + immutable_options_.point_read_learning_rate); + min_num_point_reads_ = std::min(min_num_point_reads_, result.first); } if (immutable_options_.point_reads_track_method == kNaiiveTrack) {