Debian Codegraph @

tests/t/t_online_mm_skip_reset.sh

raw symbols SCIP
1 . ./init.shscip-shell source . . `./init.sh`.
2
3 is_gtid_supported
4 if testscip-shell system . . test. $? = 1
5 then
6 mysql $M -e "change master to master_host='127.0.0.1', master_port=$S1P, master_user='rsandbox', master_password='rsandbox', master_auto_position=1; start slave"
7 else
8 mysql $M -e "change master to master_host='127.0.0.1', master_port=$S1P, master_user='rsandbox', master_password='rsandbox', master_log_file='mysql-bin.000001', master_log_pos=4; start slave"
9 fi
10
11 ./stop_s1.sh
12 ./start_s1.sh --log-slave-updates
13 sleepscip-shell system . . sleep. 5;
14
15 mysql $M -e "set global read_only=0"
16 mysql $S1 -e "set global read_only=1"
17
18 masterha_master_switch --master_state=alive --interactive=0 --conf=mha_test_reset.cnf --new_master_host=127.0.0.1 --new_master_port=$S1P --orig_master_is_new_slave > switch.log 2>&1
19 fail_if_nonzero $0 $?
20
21 mysql $S1 test -e "insert into t1 values(10000003, 300, 'bbbaaaaaaa');"
22 check_sql_stop $0 $S1P
23 mysql $S1 -e "start slave"
24 check_sql_yes $0 $S1P
25 mysql $M -e "set global read_only=0"
26 mysql $M test -e "insert into t1 values(10000004, 300, 'bbbaaaaaaa');"
27
28 ./check $0 3 "h=127.0.0.1,P=$MP h=127.0.0.1,P=$S2P h=127.0.0.1,P=$S3P h=127.0.0.1,P=$S4P"
29