| 1 |
--source include/galera_cluster.inc |
| 2 |
--source include/have_sequence.inc |
| 3 |
|
| 4 |
--connection node_1 |
| 5 |
CREATE TABLE t1(id int not null primary key auto_increment, b int) ENGINE=InnoDB; |
| 6 |
INSERT INTO t1(b) SELECT * from seq_1_to_100; |
| 7 |
INSERT INTO t1(b) SELECT * from seq_1_to_100; |
| 8 |
INSERT INTO t1(b) SELECT * from seq_1_to_100; |
| 9 |
|
| 10 |
--connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 11 |
--connection node_1a |
| 12 |
--echo # Execute mysqldump using new galera-info parameter |
| 13 |
--exec $MYSQL_DUMP -u root -S $NODE_MYSOCK_1 -P $NODE_MYPORT_1 --add-drop-database --add-drop-table --skip-add-locks --create-options --disable-keys --extended-insert --skip-lock-tables --quick --set-charset --skip-comments --flush-privileges --all-databases --events --galera-info > $MYSQLTEST_VARDIR/tmp/mysqldump.log |
| 14 |
|
| 15 |
--echo # Confirm that desired output is done |
| 16 |
--let $assert_text = wsrep_start_position |
| 17 |
--let $assert_select = wsrep_start_position |
| 18 |
--let $assert_count = 1 |
| 19 |
--let $assert_file = $MYSQLTEST_VARDIR/tmp/mysqldump.log |
| 20 |
--source include/assert_grep.inc |
| 21 |
|
| 22 |
--remove_file $MYSQLTEST_VARDIR/tmp/mysqldump.log |
| 23 |
|
| 24 |
--connection node_1 |
| 25 |
DROP TABLE t1; |
| 26 |
--disconnect node_1a |
| 27 |
--source include/galera_end.inc |