未验证 提交 5ebabe51 编写于 作者: A alexey-milovidov 提交者: GitHub

Update Cluster.cpp

上级 48088156
......@@ -155,8 +155,8 @@ Cluster::Address Cluster::Address::fromFullString(const String & full_string)
const char * underscore = strchr(full_string.data(), '_');
Address address;
address.shard_index = parse<UInt32>(address_begin + 5);
address.replica_index = underscore ? parse<UInt32>(underscore + 8) : 0;
address.shard_index = parse<UInt32>(address_begin + strlen("shard"));
address.replica_index = underscore ? parse<UInt32>(underscore + strlen("_replica")) : 0;
return address;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册