Merge lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1363234 into lp:percona-xtrabackup/2.2

Proposed by Sergei Glushchenko
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 5051
Proposed branch: lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1363234
Merge into: lp:percona-xtrabackup/2.2
Diff against target: 46 lines (+30/-1)
2 files modified
storage/innobase/xtrabackup/innobackupex.pl (+1/-1)
storage/innobase/xtrabackup/test/t/bug1363234.sh (+29/-0)
To merge this branch: bzr merge lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1363234
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+243964@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'storage/innobase/xtrabackup/innobackupex.pl'
2--- storage/innobase/xtrabackup/innobackupex.pl 2014-12-02 15:11:30 +0000
3+++ storage/innobase/xtrabackup/innobackupex.pl 2014-12-08 10:43:19 +0000
4@@ -2663,7 +2663,7 @@
5 push(@skip_list, "\Q$c->{filename}\E");
6 }
7 cleanup_dir_recursively($backup_dir,
8- '^(' . join('|', @skip_list, '.*\.ibd') . ')$');
9+ '^(' . join('|', @skip_list, '.*\.ibd', 'undo[0-9]+') . ')$');
10 }
11
12 }
13
14=== added file 'storage/innobase/xtrabackup/test/t/bug1363234.sh'
15--- storage/innobase/xtrabackup/test/t/bug1363234.sh 1970-01-01 00:00:00 +0000
16+++ storage/innobase/xtrabackup/test/t/bug1363234.sh 2014-12-08 10:43:19 +0000
17@@ -0,0 +1,29 @@
18+########################################################################
19+# Bug 1363234: Incremental backup fail with innodb_undo_tablespaces > 1
20+########################################################################
21+
22+. inc/common.sh
23+
24+require_server_version_higher_than 5.6.0
25+
26+MYSQLD_EXTRA_MY_CNF_OPTS="
27+innodb_file_per_table=1
28+innodb_undo_tablespaces=4
29+"
30+
31+start_server
32+load_sakila
33+
34+# backup
35+innobackupex --no-timestamp $topdir/backup
36+innobackupex --incremental --no-timestamp \
37+ --incremental-basedir=$topdir/backup $topdir/inc1
38+innobackupex --incremental --no-timestamp \
39+ --incremental-basedir=$topdir/inc1 $topdir/inc2
40+
41+# prepare (last one would fail)
42+innobackupex --apply-log --redo-only $topdir/backup
43+innobackupex --apply-log --redo-only --incremental-dir=$topdir/inc1 \
44+ $topdir/backup
45+innobackupex --apply-log --redo-only --incremental-dir=$topdir/inc2 \
46+ $topdir/backup

Subscribers

People subscribed via source and target branches