From 6252a281b5020d28685777c11ee27688a9db3d66 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 8 Dec 2022 17:43:59 +0100 Subject: MDEV-28910 remove the 5.5.5- version hack no longer needed, MySQL replication was fixed meanwhile. client code still can recognize and strip the prefix though. --- sql-common/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sql-common') diff --git a/sql-common/client.c b/sql-common/client.c index 916abdea190..f58601055f0 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -3070,9 +3070,10 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user, mysql->port=port; /* - remove the rpl hack from the version string, - see RPL_VERSION_HACK comment + remove the rpl hack from the version string, in case we're connecting + to a pre-11.0 server */ +#define RPL_VERSION_HACK "5.5.5-" if ((mysql->server_capabilities & CLIENT_PLUGIN_AUTH) && strncmp(mysql->server_version, RPL_VERSION_HACK, sizeof(RPL_VERSION_HACK) - 1) == 0) -- cgit v1.2.1