From 5fac4729ccaa72ff5500c525e7ff014523182588 Mon Sep 17 00:00:00 2001 From: Zhongyi Xie Date: Tue, 21 Nov 2017 20:06:55 -0800 Subject: [PATCH] make compaction_readahead_size_ thread safe Summary: this should fix the failing tsan_check Closes https://github.com/facebook/rocksdb/pull/3192 Differential Revision: D6390004 Pulled By: miasantreble fbshipit-source-id: 6cadfc6f68febb1a77b0abcdb5416570dad926a5 --- db/db_test_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {