Skip to content

Commit

Permalink
addressing feedback: moving allowed_seeks decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
yabmek-msft committed Dec 17, 2024
1 parent 7c48a58 commit ee6971e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/version_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ Status Version::Get(const ReadOptions& options, const LookupKey& k,
bool Version::UpdateStats(const GetStats& stats) {
FileMetaData* f = stats.seek_file;
if (f != nullptr) {
f->allowed_seeks--;
if (!vset_->options_->disable_seek_autocompaction) {
f->allowed_seeks--;
if (f->allowed_seeks <= 0 && file_to_compact_ == nullptr) {
file_to_compact_ = f;
file_to_compact_level_ = stats.seek_file_level;
Expand Down

0 comments on commit ee6971e

Please sign in to comment.