31 changed files with 766 additions and 176 deletions
-
33BUILD/compile-dist
-
66configure.in
-
99mysql-test/extra/rpl_tests/rpl_row_basic.test
-
12mysql-test/r/alter_table.result
-
3mysql-test/r/binlog_format_basic.result
-
9mysql-test/r/innodb_mysql.result
-
74mysql-test/r/partition.result
-
20mysql-test/r/xa.result
-
40mysql-test/suite/rpl/r/rpl_redirect.result
-
57mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result
-
57mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result
-
3mysql-test/suite/rpl/t/disabled.def
-
45mysql-test/suite/rpl/t/rpl_redirect.test
-
57mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result
-
12mysql-test/t/alter_table.test
-
7mysql-test/t/binlog_format_basic.test
-
14mysql-test/t/innodb_mysql.test
-
29mysql-test/t/partition.test
-
45mysql-test/t/xa.test
-
35sql/field.cc
-
2sql/field.h
-
2sql/ha_partition.cc
-
34sql/handler.cc
-
2sql/log.cc
-
38sql/log_event.cc
-
47sql/log_event_old.cc
-
6sql/share/errmsg.txt
-
7sql/sql_class.cc
-
4sql/sql_class.h
-
78sql/sql_parse.cc
-
5zlib/gzio.c
@ -1,40 +0,0 @@ |
|||
stop slave; |
|||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|||
reset master; |
|||
reset slave; |
|||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; |
|||
start slave; |
|||
SHOW SLAVE STATUS; |
|||
SHOW SLAVE HOSTS; |
|||
Server_id Host Port Rpl_recovery_rank Master_id |
|||
2 127.0.0.1 SLAVE_PORT 2 1 |
|||
create table t1 ( n int); |
|||
insert into t1 values (1),(2),(3),(4); |
|||
insert into t1 values(5); |
|||
SELECT * FROM t1 ORDER BY n; |
|||
n |
|||
1 |
|||
2 |
|||
3 |
|||
4 |
|||
5 |
|||
SELECT * FROM t1 ORDER BY n; |
|||
n |
|||
1 |
|||
2 |
|||
3 |
|||
4 |
|||
SELECT * FROM t1 ORDER BY n; |
|||
n |
|||
1 |
|||
2 |
|||
3 |
|||
4 |
|||
SELECT * FROM t1 ORDER BY n; |
|||
n |
|||
1 |
|||
2 |
|||
3 |
|||
4 |
|||
5 |
|||
drop table t1; |
|||
@ -1,45 +0,0 @@ |
|||
# |
|||
# Test of automatic redirection of queries to master/slave. |
|||
# |
|||
|
|||
source include/master-slave.inc; |
|||
# We disable this for now as PS doesn't handle redirection |
|||
--disable_ps_protocol |
|||
|
|||
#first, make sure the slave has had enough time to register |
|||
save_master_pos; |
|||
connection slave; |
|||
sync_with_master; |
|||
|
|||
#discover slaves |
|||
connection master; |
|||
source include/show_slave_status.inc; |
|||
--replace_result $SLAVE_MYPORT SLAVE_PORT |
|||
SHOW SLAVE HOSTS; |
|||
rpl_probe; |
|||
|
|||
#turn on master/slave query direction auto-magic |
|||
enable_rpl_parse; |
|||
create table t1 ( n int); |
|||
insert into t1 values (1),(2),(3),(4); |
|||
disable_rpl_parse; |
|||
save_master_pos; |
|||
connection slave; |
|||
sync_with_master; |
|||
insert into t1 values(5); |
|||
connection master; |
|||
enable_rpl_parse; |
|||
# The first of the queries will be sent to the slave, the second to the master. |
|||
SELECT * FROM t1 ORDER BY n; |
|||
SELECT * FROM t1 ORDER BY n; |
|||
disable_rpl_parse; |
|||
SELECT * FROM t1 ORDER BY n; |
|||
connection slave; |
|||
SELECT * FROM t1 ORDER BY n; |
|||
|
|||
# Cleanup |
|||
connection master; |
|||
drop table t1; |
|||
sync_slave_with_master; |
|||
|
|||
# End of 4.1 tests |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue