| 1 |
--source include/have_debug.inc |
| 2 |
|
| 3 |
echo # xtrabackup backup; |
| 4 |
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; |
| 5 |
--let $backup_log=$MYSQLTEST_VARDIR/tmp/backup.log |
| 6 |
|
| 7 |
--let sleep_after_waiting_for_lsn=250 |
| 8 |
--disable_result_log |
| 9 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir --log-copy-interval=500 --dbug=+d,mariabackup_inject_code > $backup_log 2>&1; |
| 10 |
--enable_result_log |
| 11 |
|
| 12 |
--let SEARCH_PATTERN=sleep_after_waiting_for_lsn\n(\[\d+\] \d+-\d+-\d+ \d+:\d+:\d+ >> log scanned up to \(\d+\)\n){2} |
| 13 |
--let SEARCH_FILE=$backup_log |
| 14 |
--source include/search_pattern_in_file.inc |
| 15 |
--remove_file $backup_log |
| 16 |
|
| 17 |
rmdir $targetdir; |
| 18 |
|