提交 8c37547b 编写于 作者: A Alexey Milovidov

Fixed harmless data race [#CLICKHOUSE-2]

上级 49bab773
...@@ -140,6 +140,10 @@ static const auto MERGE_SELECTING_SLEEP_MS = 5 * 1000; ...@@ -140,6 +140,10 @@ static const auto MERGE_SELECTING_SLEEP_MS = 5 * 1000;
extern const int MAX_AGE_OF_LOCAL_PART_THAT_WASNT_ADDED_TO_ZOOKEEPER = 5 * 60; extern const int MAX_AGE_OF_LOCAL_PART_THAT_WASNT_ADDED_TO_ZOOKEEPER = 5 * 60;
/** For randomized selection of replicas. */
thread_local pcg64 rng{randomSeed()};
void StorageReplicatedMergeTree::setZooKeeper(zkutil::ZooKeeperPtr zookeeper) void StorageReplicatedMergeTree::setZooKeeper(zkutil::ZooKeeperPtr zookeeper)
{ {
std::lock_guard<std::mutex> lock(current_zookeeper_mutex); std::lock_guard<std::mutex> lock(current_zookeeper_mutex);
......
...@@ -284,8 +284,6 @@ private: ...@@ -284,8 +284,6 @@ private:
Logger * log; Logger * log;
pcg64 rng{randomSeed()};
/// Initialization. /// Initialization.
/** Creates the minimum set of nodes in ZooKeeper. /** Creates the minimum set of nodes in ZooKeeper.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册