diff --git a/db/db_impl.cc b/db/db_impl.cc index 1b5acb4bf2..a133281ff7 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -134,7 +134,8 @@ DBImpl::DBImpl(const Options& options, const std::string& dbname) log_(NULL), tmp_batch_(new WriteBatch), bg_compaction_scheduled_(false), - manual_compaction_(NULL) { + manual_compaction_(NULL), + logger_(NULL) { mem_->Ref(); has_imm_.Release_Store(NULL); diff --git a/db/db_impl.h b/db/db_impl.h index 509647ec57..e1e7578bc0 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -7,7 +7,6 @@ #include #include -#include #include "db/dbformat.h" #include "db/log_writer.h" #include "db/snapshot.h" @@ -187,7 +186,7 @@ class DBImpl : public DB { StatsLogger* logger_; - std::atomic last_log_ts; + int64_t volatile last_log_ts; // Per level compaction stats. stats_[level] stores the stats for // compactions that produced data for the specified "level".