~sergei.glushchenko/percona-xtrabackup/transportabe-tablespaces

Viewing all changes in revision 533.

  • Committer: Sergei Glushchenko
  • Date: 2013-04-26 08:34:30 UTC
  • Revision ID: sergei.glushchenko@percona.com-20130426083430-ikjmxw3zqauva3ll
Blueprint: Support transportable tablespaces in xtrabackup --export
https://blueprints.launchpad.net/percona-xtrabackup/+spec/basic-56-support
MySQL 5.6 has a feature which allows user to export InnoDB tablespaces and
import them later. This feature is very similar to XtraDB feature.
Xtrabackup has an option to export single table tablespace from backup.
It dump table metadata in format which InnoDB can recognize (.exp files).
But MySQL has it's own format of metadata stored in .cfg files.
This patch allows Xtrabackup to produce metadata in both formats when
export is performed. The code to support cfg export is copied from
MySQL sources with some modifications.
Existing testcase xb_export.sh has been modified to test export
on MySQL 5.6 as well. It however works even when .cfg is not generated
because bug http://bugs.mysql.com/bug.php?id=66715 is fixed in
MySQL 5.6.8. It fails however in case of incorrect or corrupted .cfg
file.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: