diff --git a/db/db_test_util.h b/db/db_test_util.h index cca776157..0462d37c0 100644 --- a/db/db_test_util.h +++ b/db/db_test_util.h @@ -574,7 +574,7 @@ class SpecialEnv : public EnvWrapper { std::atomic is_wal_sync_thread_safe_{true}; - size_t compaction_readahead_size_; + std::atomic compaction_readahead_size_; }; class MockTimeEnv : public EnvWrapper {