From c75cc147032f0a8ea5178a265df7a7b5e81ffcea Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 1 Sep 2018 23:28:46 +0300 Subject: [PATCH] Fixed error in UBSan [#CLICKHOUSE-2] --- dbms/src/Common/RWLockFIFO.h | 2 +- dbms/src/Interpreters/Cluster.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Common/RWLockFIFO.h b/dbms/src/Common/RWLockFIFO.h index 6a986ba7ca3..29c37ff78b6 100644 --- a/dbms/src/Common/RWLockFIFO.h +++ b/dbms/src/Common/RWLockFIFO.h @@ -40,7 +40,7 @@ private: int thread_number = 0; std::time_t enqueue_time = 0; std::time_t start_time = 0; - Type type; + Type type = Read; }; public: diff --git a/dbms/src/Interpreters/Cluster.h b/dbms/src/Interpreters/Cluster.h index 945e594663b..8bfbc073c61 100644 --- a/dbms/src/Interpreters/Cluster.h +++ b/dbms/src/Interpreters/Cluster.h @@ -114,7 +114,7 @@ public: ConnectionPoolWithFailoverPtr pool; /// Connection pool for each replica, contains nullptr for local replicas ConnectionPoolPtrs per_replica_pools; - bool has_internal_replication; + bool has_internal_replication = false; }; using ShardsInfo = std::vector;