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
This commit is contained in:
Zhongyi Xie 2017-11-21 20:06:55 -08:00 committed by Facebook Github Bot
parent fe187e7e6c
commit 5fac4729cc

View File

@ -574,7 +574,7 @@ class SpecialEnv : public EnvWrapper {
std::atomic<bool> is_wal_sync_thread_safe_{true};
size_t compaction_readahead_size_;
std::atomic<size_t> compaction_readahead_size_;
};
class MockTimeEnv : public EnvWrapper {