Debian Codegraph @

mysql-test/suite/mariabackup/log_file_unexpected_large_number_in_name.test

raw
1 --let $MYSQLD_DATADIR=`select @@datadir`
2
3 --echo #
4 --echo # Start of 10.5 tests
5 --echo #
6
7 --echo #
8 --echo # MENT-1587 mariabackup failing due to aria log file copy
9 --echo #
10
11
12 --let $basedir=$MYSQLTEST_VARDIR/tmp/backup
13 --let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1
14
15 CREATE TABLE t1(i INT PRIMARY KEY) ENGINE=ARIA;
16 INSERT INTO t1 VALUES (10);
17
18 #
19 # Add a log file with a number outside of last_log_number
20 # specified in aria_log_control.
21 # The actual file number written in the header is 4.
22 # Let's rename it to 100 for test purposes.
23 # Hopefully 100 should be enough.
24 #
25 --copy_file suite/mariabackup/std_data/ment1587_aria_log.00000004 $MYSQLD_DATADIR/aria_log.00000100
26
27 --disable_result_log
28 --exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$basedir
29 --enable_result_log
30
31 --disable_result_log
32 --echo # Prepare full backup
33 --exec $XTRABACKUP --prepare --target-dir=$basedir
34 --enable_result_log
35
36 --let $targetdir=$basedir
37 --source include/restart_and_restore.inc
38 --enable_result_log
39 --rmdir $basedir
40
41 SELECT * FROM t1;
42 DROP TABLE t1;
43
44
45 --echo #
46 --echo # End of 10.5 tests
47 --echo #