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:
parent
fe187e7e6c
commit
5fac4729cc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user