Merge lp:~sergei.glushchenko/percona-xtrabackup/xb20-bug1038127 into lp:percona-xtrabackup/2.0
Proposed by
Sergei Glushchenko
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Alexey Kopytov | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 466 | ||||
Proposed branch: | lp:~sergei.glushchenko/percona-xtrabackup/xb20-bug1038127 | ||||
Merge into: | lp:percona-xtrabackup/2.0 | ||||
Diff against target: |
125 lines (+70/-8) 2 files modified
src/xtrabackup.c (+29/-8) test/t/bug1038127.sh (+41/-0) |
||||
To merge this branch: | bzr merge lp:~sergei.glushchenko/percona-xtrabackup/xb20-bug1038127 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+121360@code.launchpad.net |
Description of the change
space_id in .meta file been made optional.
http://
To post a comment you must log in.
Some comments on the fix and the test case:
I think we should print a warning when space_id is not found in the
metadata file, something along the lines of "This backup was taken
with XtraBackup 2.0.1 or earlier, some DDL operations between full and
incremental backups may be handled incorrectly".
The if() statements in xb_read_ delta_metadata( ) should really be "if
() else ...". And InnoDB code uses braces around single-statement
blocks.
In the test case:
- there's no need to do --copy-back, restart the server and calculate
checksums. The test case must verify that prepare on specially
formatted .delta files does not fail (and possibly issues a warning)
- the "Inserting more data" step is meaningless, it doesn't affect the
deltas, as there will be no changes in the data
- there's no need for 'ls -al ..'
- the construct with 'mv ...; grep ...' is equivalent to:
sed -ie 's/space_id/ d' $topdir/ inc/test/ t1.ibd. meta