diff --git a/db/version_set.cc b/db/version_set.cc index 52d203366c..8221747af0 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -2367,7 +2367,7 @@ Compaction* VersionSet::PickCompactionUniversalReadAmp( Compaction* VersionSet::PickCompactionUniversal(int level, double score) { assert (level == 0); - if ((current_->files_[level].size() <= + if ((current_->files_[level].size() < (unsigned int)options_->level0_file_num_compaction_trigger)) { Log(options_->info_log, "Universal: nothing to do\n"); return nullptr;