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
main
Zhongyi Xie 7 years ago committed by Facebook Github Bot
parent fe187e7e6c
commit 5fac4729cc
  1. 2
      db/db_test_util.h

@ -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…
Cancel
Save