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