From 47166baeac26227258ac531290c1644be756bd66 Mon Sep 17 00:00:00 2001 From: Prashant D Date: Thu, 26 Oct 2017 21:00:17 -0700 Subject: [PATCH] Fix coverity uninitialized fields warnings Pulled By: ajkr Differential Revision: D6170448 fbshipit-source-id: 5fd6d1608fc0df27c94d9f5059315ce7f79b8f5c --- db/db_iter.cc | 4 +++- db/flush_job.cc | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/db/db_iter.cc b/db/db_iter.cc index 1288e19f0d1..256cad7fe69 100644 --- a/db/db_iter.cc +++ b/db/db_iter.cc @@ -115,6 +115,7 @@ class DBIter final: public Iterator { valid_(false), current_entry_is_merged_(false), statistics_(cf_options.statistics), + num_internal_keys_skipped_(0), iterate_lower_bound_(read_options.iterate_lower_bound), iterate_upper_bound_(read_options.iterate_upper_bound), prefix_same_as_start_(read_options.prefix_same_as_start), @@ -123,7 +124,8 @@ class DBIter final: public Iterator { range_del_agg_(cf_options.internal_comparator, s, true /* collapse_deletions */), read_callback_(read_callback), - allow_blob_(allow_blob) { + allow_blob_(allow_blob), + is_blob_(false) { RecordTick(statistics_, NO_ITERATORS); prefix_extractor_ = cf_options.prefix_extractor; max_skip_ = max_sequential_skip_in_iterations; diff --git a/db/flush_job.cc b/db/flush_job.cc index 9c18ee5ffbf..8faaad43897 100644 --- a/db/flush_job.cc +++ b/db/flush_job.cc @@ -87,6 +87,8 @@ FlushJob::FlushJob(const std::string& dbname, ColumnFamilyData* cfd, stats_(stats), event_logger_(event_logger), measure_io_stats_(measure_io_stats), + edit_(nullptr), + base_(nullptr), pick_memtable_called(false) { // Update the thread status to indicate flush. ReportStartedFlush();