Skip to content

Commit ee6971e

Browse files
committed
addressing feedback: moving allowed_seeks decrement
1 parent 7c48a58 commit ee6971e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/version_set.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ Status Version::Get(const ReadOptions& options, const LookupKey& k,
402402
bool Version::UpdateStats(const GetStats& stats) {
403403
FileMetaData* f = stats.seek_file;
404404
if (f != nullptr) {
405-
f->allowed_seeks--;
406405
if (!vset_->options_->disable_seek_autocompaction) {
406+
f->allowed_seeks--;
407407
if (f->allowed_seeks <= 0 && file_to_compact_ == nullptr) {
408408
file_to_compact_ = f;
409409
file_to_compact_level_ = stats.seek_file_level;

0 commit comments

Comments
 (0)