1--source include/have_innodb.inc
2--source include/count_sessions.inc
3
4CREATE TABLE t(i INT) ENGINE INNODB;
5
6connect (con1,localhost,root,,);
7BEGIN;
8LOCK TABLES t WRITE;
9
10--connection default
11
12echo # xtrabackup backup;
13let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
14
15--disable_result_log
16--error 1
17exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --ftwrl-wait-timeout=1 --target-dir=$targetdir;
18--enable_result_log
19
20--connection con1
21COMMIT;
22
23--connection default
24--disconnect con1
25
26DROP TABLE t;
27rmdir $targetdir;
28--source include/wait_until_count_sessions.inc
29