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.
This commit is contained in:
Marko Mäkelä 2023-10-06 12:30:43 +03:00
parent a34b989f0c
commit ebf3649259

View File

@ -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);