From e0eb2f542842b3fce5b9d86b6f4a29ed64ed7f1e Mon Sep 17 00:00:00 2001 From: Mikhail Korotov <55493615+millb@users.noreply.github.com> Date: Mon, 3 Feb 2020 16:18:00 +0300 Subject: [PATCH] Update Cluster.cpp --- 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 a972fe294d5..665ee5af1ed 100644 --- a/dbms/src/Interpreters/Cluster.cpp +++ b/dbms/src/Interpreters/Cluster.cpp @@ -158,7 +158,7 @@ Cluster::Address Cluster::Address::fromFullString(const String & full_string) const char * user_pw_end = strchr(full_string.data(), '@'); /// parsing with format [shard{shard_index}[_replica{replica_index}]] - if (!user_pw_end && startsWith("shard", full_string)) + if (!user_pw_end && startsWith(full_string, "shard")) { const char * underscore = strchr(full_string.data(), '_');