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

Follow up fix for PXB-3318: handle rename source and destination as s… #1587

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions storage/innobase/xtrabackup/src/xtrabackup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5615,11 +5615,6 @@ static void rename_file(const std::string &from, const std::string &to) {

static void rename_force(const std::string &from, const std::string &to) {
MY_STAT stat_info;
if (access(to.c_str(), R_OK) == 0) {
if (my_delete(to.c_str(), MYF(MY_WME))) {
exit(EXIT_FAILURE);
}
}
/* check if dest folder exists */
std::string dest_dir = to.substr(0, to.find_last_of("/"));
/* create target dir if not exist */
Expand Down
Loading