Merge lp:~gl-az/percona-xtrabackup/bug1211263 into lp:percona-xtrabackup/2.1
Proposed by
George Ormond Lorch III
Status: | Merged |
---|---|
Approved by: | Alexey Kopytov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 660 |
Proposed branch: | lp:~gl-az/percona-xtrabackup/bug1211263 |
Merge into: | lp:percona-xtrabackup/2.1 |
Prerequisite: | lp:~akopytov/percona-xtrabackup/bug1210266-2.1 |
Diff against target: |
61 lines (+30/-10) 2 files modified
innobackupex (+17/-9) test/t/ib_rsync.sh (+13/-1) |
To merge this branch: | bzr merge lp:~gl-az/percona-xtrabackup/bug1211263 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Review via email: mp+180219@code.launchpad.net |
This proposal supersedes a proposal from 2013-08-14.
Description of the change
Fix for bug 1211263 : innobackupex unnecessarily calls 'cp' for metadata files
Fix is fairly simple an inelegant, check for streaming in innobckupex write_to_
If streaming, continue to use the original method of writing a temp file, then calling backup_file.
Otherwise write directly to the result file.
Slightly modified the ib_rsync.sh test case to use a 'fake' cp command that will always fail and thus cause the test to fail if cp is ever called from innobackupex during --rsync.
http://
To post a comment you must log in.
Here's an idea for a test case:
cat >$topdir/cp <<EOF
#!/bin/sh
false
EOF
chmod +x $topdir/cp
PATH=$topdir:$PATH innobackupex --rsync ...
I.e. supply a fake 'cp' to innobackupex which always fails to make sure it is never used for --rsync.