From 613b7314f64f8d4c23ce9dc985e1a0ed3fa43d33 Mon Sep 17 00:00:00 2001 From: millb Date: Fri, 31 Jan 2020 12:29:28 +0300 Subject: [PATCH] fixed bugs --- dbms/src/Interpreters/Cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Interpreters/Cluster.cpp b/dbms/src/Interpreters/Cluster.cpp index e8b95a4dc47..18657bc94cf 100644 --- a/dbms/src/Interpreters/Cluster.cpp +++ b/dbms/src/Interpreters/Cluster.cpp @@ -147,7 +147,7 @@ Cluster::Address Cluster::Address::fromFullString(const String & full_string) const char * address_begin = full_string.data(); bool has_shard = startsWith("shard", full_string); - bool underscore = strchr(full_string.data(), '_'); + const char * underscore = strchr(full_string.data(), '_'); Address address; address.shard_number = has_shard ? parse(address_begin + 5) : 0;