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
This commit is contained in:
Igor Canadi 2015-10-05 10:10:11 -07:00
parent 5c7bf56d35
commit bf19dbff44

View File

@ -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);