Commit ebf36492 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-32361 mariadb-backup --move-back leaves out ib_logfile0

copy_back(): Also copy the dummy empty ib_logfile0 so that
MariaDB Server 10.8 or later can be started after
--copy-back or --move-back.

Thanks to Daniel Black for reporting this.
parent a34b989f
......@@ -1984,8 +1984,10 @@ copy_back()
dst_dir, i);
unlink(filename);
}
} else if (!(ret = copy_or_move_file(ds_tmp, "ib_logfile0", "ib_logfile0",
dst_dir, 1))) {
}
if (!(ret = copy_or_move_file(ds_tmp, "ib_logfile0", "ib_logfile0",
dst_dir, 1))) {
goto cleanup;
}
ds_destroy(ds_tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment