mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Update PoolWithFailover.cpp
This commit is contained in:
parent
3502d36d7d
commit
3e03bf8e65
@ -2,7 +2,7 @@
|
|||||||
#include <mysqlxx/PoolWithFailover.h>
|
#include <mysqlxx/PoolWithFailover.h>
|
||||||
|
|
||||||
|
|
||||||
/// Duplicate of code from StringUtils.h. Copied here for lower dependencies.
|
/// Duplicate of code from StringUtils.h. Copied here for less dependencies.
|
||||||
static bool startsWith(const std::string & s, const char * prefix)
|
static bool startsWith(const std::string & s, const char * prefix)
|
||||||
{
|
{
|
||||||
return s.size() >= strlen(prefix) && 0 == memcmp(s.data(), prefix, strlen(prefix));
|
return s.size() >= strlen(prefix) && 0 == memcmp(s.data(), prefix, strlen(prefix));
|
||||||
|
Loading…
Reference in New Issue
Block a user