提交 a098207c 编写于 作者: D Dhruba Borthakur

Fixed unit test c_test by initializing logger=NULL.

Summary:
Fixed unit test c_test by initializing logger=NULL.

Removed "atomic" from last_log_ts so that unit tests do not require C11 compiler.
Anyway, last_log_ts is mostly used for logging, so it is ok if it is loosely
accurate.

Test Plan: run c_test

Reviewers: heyongqiang

Reviewed By: heyongqiang

Differential Revision: https://reviews.facebook.net/D4803
上级 407f0209
......@@ -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);
......
......@@ -7,7 +7,6 @@
#include <deque>
#include <set>
#include <atomic>
#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<int64_t> 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".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册