Update Cluster.cpp

This commit is contained in:
Mikhail Korotov 2020-02-03 16:18:00 +03:00 committed by GitHub
parent 14acdffb0e
commit e0eb2f5428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(), '_');