diff --git a/db/db_sst_test.cc b/db/db_sst_test.cc index 2781c61bfd8fd1b65fd826908b9737c4deb2735b..46dbd0d4094f70f37f1db0e842fa6d5a9596f6c1 100644 --- a/db/db_sst_test.cc +++ b/db/db_sst_test.cc @@ -436,7 +436,7 @@ TEST_F(DBSSTTest, OpenDBWithExistingTrash) { // deleted from first db_path were deleted using DeleteScheduler and // files in the second path were not. TEST_F(DBSSTTest, DeleteSchedulerMultipleDBPaths) { - int bg_delete_file = 0; + std::atomic bg_delete_file(0); rocksdb::SyncPoint::GetInstance()->SetCallBack( "DeleteScheduler::DeleteTrashFile:DeleteFile", [&](void* /*arg*/) { bg_delete_file++; });