mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 01:54:55 +00:00
Update Cluster.cpp
This commit is contained in:
parent
14acdffb0e
commit
e0eb2f5428
@ -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(), '_');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user