diff --git a/db/column_family.h b/db/column_family.h index 256b66dac05..d7e6c24ae5c 100644 --- a/db/column_family.h +++ b/db/column_family.h @@ -77,7 +77,7 @@ class ColumnFamilyHandleImpl : public ColumnFamilyHandle { class ColumnFamilyHandleInternal : public ColumnFamilyHandleImpl { public: ColumnFamilyHandleInternal() - : ColumnFamilyHandleImpl(nullptr, nullptr, nullptr) {} + : ColumnFamilyHandleImpl(nullptr, nullptr, nullptr), internal_cfd_(nullptr) {} void SetCFD(ColumnFamilyData* _cfd) { internal_cfd_ = _cfd; } virtual ColumnFamilyData* cfd() const override { return internal_cfd_; } diff --git a/db/compacted_db_impl.cc b/db/compacted_db_impl.cc index 7cff496f277..8f44b08b87c 100644 --- a/db/compacted_db_impl.cc +++ b/db/compacted_db_impl.cc @@ -17,7 +17,8 @@ extern bool SaveValue(void* arg, const ParsedInternalKey& parsed_key, CompactedDBImpl::CompactedDBImpl( const DBOptions& options, const std::string& dbname) - : DBImpl(options, dbname) { + : DBImpl(options, dbname), cfd_(nullptr), version_(nullptr), + user_comparator_(nullptr) { } CompactedDBImpl::~CompactedDBImpl() { diff --git a/db/compaction_iterator.cc b/db/compaction_iterator.cc index 6de962ab4b8..312df2c61c8 100644 --- a/db/compaction_iterator.cc +++ b/db/compaction_iterator.cc @@ -80,7 +80,10 @@ CompactionIterator::CompactionIterator( #endif // ROCKSDB_LITE shutting_down_(shutting_down), ignore_snapshots_(false), - merge_out_iter_(merge_helper_) { + current_user_key_sequence_(0), + current_user_key_snapshot_(0), + merge_out_iter_(merge_helper_), + current_key_committed_(false) { assert(compaction_filter_ == nullptr || compaction_ != nullptr); bottommost_level_ = compaction_ == nullptr ? false : compaction_->bottommost_level();