Merge lp:~akopytov/percona-xtrabackup/bug1130627-2.0 into lp:percona-xtrabackup/2.0
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Sergei Glushchenko | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 512 | ||||||||
Proposed branch: | lp:~akopytov/percona-xtrabackup/bug1130627-2.0 | ||||||||
Merge into: | lp:percona-xtrabackup/2.0 | ||||||||
Diff against target: |
351 lines (+183/-55) 3 files modified
innobackupex (+38/-17) src/xtrabackup.cc (+71/-38) test/t/bug1130627.sh (+74/-0) |
||||||||
To merge this branch: | bzr merge lp:~akopytov/percona-xtrabackup/bug1130627-2.0 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergei Glushchenko (community) | g2 | Approve | |
Review via email: mp+151895@code.launchpad.net |
Description of the change
Bug #1130627: Can't backup individual partitions
The bug is a regression introduced in 2.0.5 by the fix for bug
#711166. The fix introduced partition suffix ('#P#...') trimming in
tables names before checking them against regular expressions specified
by the --include option in innobackupex or the --tables option in
xtrabackup. Which made impossible partial backups of partitioned tables.
Fixed in both innobackupex and xtrabackup by first checking the table
name without the suffix trimmed, and then repeating the check with the
suffix trimmed if the former check fails.
This patch also fixes bug #1131084 "Unneccessary/debug print in
xtrabackup output" and a few other minor issues introduced by the fix
for bug #711166.
http://
Alexey,
* get_table_ name_with_ part_suffic - is it a typo? table_matches_ regexps doesn't look like a good name since it not
* innobackupex change affects only --include option (which is regex) and
doesn't affects --databases option, i.e. with --databases option individual
partitions still cannot be backed up
* while xtrabackup change affects both --tables and --tables-file (one with regexp, another one without)
which looks to me as kind of inconsistency
* check_if_
only matches against regexps, but also against table names from --tables-file
* would also be nice to have testcases which take a backup only of some partitions
with different combinations of options