From f76e4027ca36c93ad8f49c24333dfe9f53eb0178 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 3 Apr 2014 11:45:44 -0700 Subject: [PATCH] initialize candidate count --- db/compaction_picker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/compaction_picker.cc b/db/compaction_picker.cc index c39b6d328..db9cacfc5 100644 --- a/db/compaction_picker.cc +++ b/db/compaction_picker.cc @@ -653,7 +653,7 @@ Compaction* UniversalCompactionPicker::PickCompactionUniversalReadAmp( FileMetaData* f = nullptr; bool done = false; int start_index = 0; - unsigned int candidate_count; + unsigned int candidate_count = 0; assert(file_by_time.size() == version->files_[level].size()); unsigned int max_files_to_compact = std::min(max_merge_width,