diff --git a/db/db_test.cc b/db/db_test.cc index 9b3a3d4bf..017c85701 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -9649,7 +9649,7 @@ TEST_F(DBTest, PauseBackgroundWorkTest) { Reopen(options); std::vector threads; - std::atomic done; + std::atomic done(false); db_->PauseBackgroundWork(); threads.emplace_back([&]() { Random rnd(301);