Debian Codegraph @

tests/t/t_mm_noslaves.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 sleepscip-shell system . . sleep. 1
12
13 masterha_check_repl --conf=mha_test_mm.cnf > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
14 fail_if_zero $0 $?
15 ./run.sh --conf=mha_test_mm.cnf
16 fail_if_zero $0 $?
17
18 mysql $S1 -e "set global read_only=1"
19 mysql $M -e "set global read_only=1"
20
21 masterha_check_repl --conf=mha_test_mm.cnf > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
22 fail_if_zero $0 $?
23 ./run.sh --conf=mha_test_mm.cnf
24 fail_if_zero $0 $?
25
26 mysql $M -e "set global read_only=0"
27
28 masterha_check_repl --conf=mha_test_mm.cnf > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
29 fail_if_nonzero $0 $?
30
31 mysql $M test -e "insert into t1 values(2, 200, 'aaaaaa')"
32 mysql $M test -e "insert into t1 values(3, 200, 'aaaaaa')"
33 mysql $M test -e "insert into t1 values(4, 200, 'aaaaaa')"
34 mysql $M test -e "insert into t1 values(5, 200, 'aaaaaa')"
35 mysql $M test -e "insert into t1 values(6, 200, 'aaaaaa')"
36
37 ./kill_m.sh
38 ./run.sh --conf=mha_test_mm.cnf
39 fail_if_nonzero $0 $?
40
41 mysql $S1 test -e "insert into t1 values(10000003, 300, 'bbbaaaaaaa');"
42
43 ./check $0 7 "h=127.0.0.1,P=$S1P"
44