summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-12-08 12:10:30 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2003-12-08 12:10:30 +0400
commit8bf9ccb627af48fa24cce5699c9a9c2314cc406d (patch)
tree75e28dc5a1da51138dbbc9640cf58adce2a81d9b /mysql-test/t
parentc335939203ee910c378438198a0a363789772310 (diff)
downloadmariadb-git-8bf9ccb627af48fa24cce5699c9a9c2314cc406d.tar.gz
Fixed test for 'init_slave' variable
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/rpl_init_slave-slave.opt2
-rw-r--r--mysql-test/t/rpl_init_slave.test10
2 files changed, 6 insertions, 6 deletions
diff --git a/mysql-test/t/rpl_init_slave-slave.opt b/mysql-test/t/rpl_init_slave-slave.opt
index 6433dccf4aa..337e8a60d97 100644
--- a/mysql-test/t/rpl_init_slave-slave.opt
+++ b/mysql-test/t/rpl_init_slave-slave.opt
@@ -1 +1 @@
---init-slave="set @a=1;set @b=2"
+--init-slave="set global max_connections=500"
diff --git a/mysql-test/t/rpl_init_slave.test b/mysql-test/t/rpl_init_slave.test
index 67d35546225..3ea04117ced 100644
--- a/mysql-test/t/rpl_init_slave.test
+++ b/mysql-test/t/rpl_init_slave.test
@@ -6,20 +6,20 @@ source include/master-slave.inc;
save_master_pos;
connection slave;
+sleep 1;
+show variables like 'init_slave';
+show variables like 'max_connections';
sync_with_master;
reset master;
connection master;
-create table t1(n int);
-insert into t1 values (@a), (@b);
-select * from t1;
+show variables like 'init_slave';
+show variables like 'max_connections';
save_master_pos;
connection slave;
sync_with_master;
-select * from t1;
set global init_connect="set @c=1";
show variables like 'init_connect';
connection master;
-drop table t1;
save_master_pos;
connection slave;
sync_with_master;