summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2014-06-24 14:43:08 +0200
committerKristian Nielsen <knielsen@knielsen-hq.org>2014-06-24 14:43:08 +0200
commit312219cc63fd49734b3369cc41cdc0f5cf2aaa7f (patch)
tree907dfdf08ea24e93abb755227638a18aa428baab /client
parente0c8d729a27ae3a8a1a6c5e6e64f0380381f53d5 (diff)
downloadmariadb-git-312219cc63fd49734b3369cc41cdc0f5cf2aaa7f.tar.gz
MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication
MySQL 5.6 implemented WL#344, which is about a MASTER_DELAY option to CHANGE MASTER. But as part of this worklog, the format of the realy-log.info file was changed. The new format is not understood by earlier versions, and nor by MariaDB 10.0, so changing server to those versions would cause the slave to abort with an error due to reading incorrect data out of relay-log.info. Fix this by backporting from the WL#344 patch just the code that understands the new relay-log.info format. We still write out the old format, and none of the MASTER_DELAY feature is backported with this commit.
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index ef339d17a42..464ec0f0199 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -8990,6 +8990,10 @@ int main(int argc, char **argv)
128, 0, 0, get_var_key, 0, var_free, MYF(0)))
die("Variable hash initialization failed");
+ {
+ char path_separator[]= { FN_LIBCHAR, 0 };
+ var_set_string("SYSTEM_PATH_SEPARATOR", path_separator);
+ }
var_set_string("MYSQL_SERVER_VERSION", MYSQL_SERVER_VERSION);
var_set_string("MYSQL_SYSTEM_TYPE", SYSTEM_TYPE);
var_set_string("MYSQL_MACHINE_TYPE", MACHINE_TYPE);