summaryrefslogtreecommitdiff
path: root/extra/mariabackup/backup_copy.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-04-21 00:50:53 +0200
committerSergei Golubchik <serg@mariadb.org>2017-04-27 19:12:43 +0200
commit4e07fc0ab5cae18ace570b534904c24e208e31e0 (patch)
treeaff8274a87185c497ec5e5edf0572c55f20d4429 /extra/mariabackup/backup_copy.cc
parente8bc838eb9ee4aa8de11bfa2472c9784df78590f (diff)
downloadmariadb-git-4e07fc0ab5cae18ace570b534904c24e208e31e0.tar.gz
test failure
use --defaults-file to avoid reading ~/.my.cnf and don't crash if some ibdata file couldn't be opened
Diffstat (limited to 'extra/mariabackup/backup_copy.cc')
-rw-r--r--extra/mariabackup/backup_copy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/backup_copy.cc b/extra/mariabackup/backup_copy.cc
index 67c96b4b648..1565e20d732 100644
--- a/extra/mariabackup/backup_copy.cc
+++ b/extra/mariabackup/backup_copy.cc
@@ -977,7 +977,7 @@ copy_file(ds_ctxt_t *datasink,
const char *action;
if (!datafile_open(src_file_path, &cursor, thread_n)) {
- goto error;
+ goto error_close;
}
strncpy(dst_name, cursor.rel_path, sizeof(dst_name));