Debian Codegraph @

mysql-test/suite/mariabackup/compress_qpress.test

raw
1 CREATE TABLE t(i INT) ENGINE INNODB;
2 INSERT INTO t VALUES(1);
3 echo # xtrabackup backup;
4 let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
5
6 --disable_result_log
7 exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --compress --target-dir=$targetdir;
8 --enable_result_log
9
10 INSERT INTO t VALUES(2);
11
12
13 echo # xtrabackup prepare;
14 --disable_result_log
15 # Because MDEV-24626 in 10.6 optimized file creation, we could end up with
16 # t.new.qp instead of t.ibd.qp unless a log checkpoint happened to be
17 # triggered between CREATE TABLE and the backup run.
18 --replace_result t.new t.ibd
19 list_files $targetdir/test *.qp;
20 exec $XTRABACKUP --decompress --remove-original --target-dir=$targetdir;
21 list_files $targetdir/test *.qp;
22 exec $XTRABACKUP --prepare --target-dir=$targetdir;
23 -- source include/restart_and_restore.inc
24 --enable_result_log
25
26 SELECT * FROM t;
27 DROP TABLE t;
28 rmdir $targetdir;