Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 1648322 in 2.4 #293

Merged
merged 2 commits into from Dec 17, 2016
Merged

Fix bug 1648322 in 2.4 #293

merged 2 commits into from Dec 17, 2016

Conversation

gl-sergei
Copy link
Contributor

No description provided.

…tadir tablespaces to their original directories

When copy-back walks files and copies them back to datadir, it is
looking for corresponding .isl files as it passing by .ibd file. If .isl
file is found, .ibd will be copied to the destination pointed by .isl.

It works for copy-back, but it doesn't work for move-back, because we
have no control over the order in which files are handled. It can happen
that .isl file already moved when we are handling corresponding .ibd
file.

To fix this, map has been introduced to store association between .ibd
files and their destinations. Now when we stumble upon .ibd or .isl file
we store destination path for .ibd file as been read from .isl. And when
we handle .ibd, we simply lookup the destination from that map.
* 2.3-xb-bug1648322:
  Bug 1648322: xtrabackup --move-back is not always restoring out-of-datadir tablespaces to their original directories
@gl-sergei
Copy link
Contributor Author

@gl-sergei gl-sergei merged commit 4cdd0d7 into percona:2.4 Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant