mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 05:35:31 +02:00
MDEV-4088 Replication 10.0 -> 5.5 fails
This commit is contained in:
parent
da7eca021b
commit
c50ee6c23d
3 changed files with 14 additions and 1 deletions
|
|
@ -3416,6 +3416,12 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
|
|||
strmov(mysql->server_version,(char*) net->read_pos+1);
|
||||
mysql->port=port;
|
||||
|
||||
/* remove the rpl hack from the version string */
|
||||
if (mysql->server_capabilities & CLIENT_PLUGIN_AUTH &&
|
||||
strncmp(mysql->server_version, RPL_VERSION_HACK,
|
||||
sizeof(RPL_VERSION_HACK) - 1) == 0)
|
||||
mysql->server_version+= sizeof(RPL_VERSION_HACK) - 1;
|
||||
|
||||
if (pkt_end >= end + SCRAMBLE_LENGTH - SCRAMBLE_LENGTH_323 + 1)
|
||||
{
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue