| 1 |
--source include/have_log_bin.inc |
| 2 |
|
| 3 |
reset master; |
| 4 |
|
| 5 |
create table t1 (col1 int primary key); |
| 6 |
|
| 7 |
--let $idx = 0 |
| 8 |
|
| 9 |
while($idx < 3){ |
| 10 |
--echo |
| 11 |
--exec echo Test GTID with innodb_fast_shutdown = $idx |
| 12 |
--echo --------------------------------------- |
| 13 |
|
| 14 |
--eval set global innodb_fast_shutdown = $idx |
| 15 |
select @@innodb_fast_shutdown as shutdown_mode; |
| 16 |
|
| 17 |
--inc $idx |
| 18 |
|
| 19 |
--eval insert into t1 values ($idx + 1) |
| 20 |
--eval insert into t1 values (5*$idx + 1) |
| 21 |
--eval insert into t1 values (7*$idx + 1) |
| 22 |
|
| 23 |
--source include/restart_mysqld.inc |
| 24 |
|
| 25 |
select * from t1 order by col1; |
| 26 |
|
| 27 |
select sum(interval_end - interval_start + 1) as count_gtid |
| 28 |
from mysql.gtid_executed group by source_uuid; |
| 29 |
} |
| 30 |
|
| 31 |
--echo |
| 32 |
drop table t1; |