Fixed error in UBSan [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-09-01 23:28:46 +03:00
parent 2bdb5b9fdf
commit c75cc14703
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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<ShardInfo>;