提交 bf19dbff 编写于 作者: I Igor Canadi

Fix valgrind - Initialize done variable

Summary: Fixes the valgrind warning "Conditional jump or move depends on uninitialised value(s)"

Test Plan: valgrind test, no more warning

Reviewers: sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D48177
上级 5c7bf56d
......@@ -9649,7 +9649,7 @@ TEST_F(DBTest, PauseBackgroundWorkTest) {
Reopen(options);
std::vector<std::thread> threads;
std::atomic<bool> done;
std::atomic<bool> done(false);
db_->PauseBackgroundWork();
threads.emplace_back([&]() {
Random rnd(301);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册