diff --git a/db/column_family_test.cc b/db/column_family_test.cc index 7ebe0068b..1253df5de 100644 --- a/db/column_family_test.cc +++ b/db/column_family_test.cc @@ -55,7 +55,7 @@ class EnvCounter : public EnvWrapper { } private: - int num_new_writable_file_; + std::atomic num_new_writable_file_; }; class ColumnFamilyTest : public testing::Test {