diff --git a/db/db_test2.cc b/db/db_test2.cc index ed0f469d0a..1f08e17946 100644 --- a/db/db_test2.cc +++ b/db/db_test2.cc @@ -4376,8 +4376,8 @@ class DummyOldStats : public Statistics { } bool HistEnabledForType(uint32_t /*type*/) const override { return false; } std::string ToString() const override { return ""; } - int num_rt = 0; - int num_mt = 0; + std::atomic num_rt{0}; + std::atomic num_mt{0}; }; } // namespace