| 1 |
--source include/have_ndb.inc |
| 2 |
|
| 3 |
--let $dump_file= $MYSQLTEST_VARDIR/tmp/restore_out.txt |
| 4 |
|
| 5 |
|
| 6 |
--disable_query_log |
| 7 |
create table test.ndb_restore_output(line varchar(1000)) |
| 8 |
engine=Innodb; |
| 9 |
eval load data infile '$dump_file' into table test.ndb_restore_output; |
| 10 |
|
| 11 |
# remove <CR> from line in Windows |
| 12 |
update test.ndb_restore_output set line = trim(trailing '\r' from line); |
| 13 |
|
| 14 |
# Masking timestamp from the restore output with 'X' to avoid tests |
| 15 |
# running on different dates give 'Result content mismatch'. |
| 16 |
replace_regex /[0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*/XXXX-XX-XX XX:XX:XX/ |
| 17 |
/Node [1-9][0-9]*:/Node XX:/ ; |
| 18 |
select line as "row" from test.ndb_restore_output |
| 19 |
where line like "%WARNING%" order by line; |
| 20 |
|
| 21 |
drop table test.ndb_restore_output; |
| 22 |
--enable_query_log |