Skip to content

Commit

Permalink
MDEV-32361 mariadb-backup --move-back leaves out ib_logfile0
Browse files Browse the repository at this point in the history
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 is a 10.5 version of
commit ebf3649
  • Loading branch information
dr-m committed Oct 6, 2023
1 parent 6b343de commit 0e0a19b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extra/mariabackup/backup_copy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,10 @@ copy_back()
snprintf(filename, sizeof filename, "%s/%s101", dst_dir,
LOG_FILE_NAME_PREFIX);
unlink(filename);
} else if (!(ret = copy_or_move_file(ds_tmp, LOG_FILE_NAME, LOG_FILE_NAME,
dst_dir, 1))) {
}

if (!(ret = copy_or_move_file(ds_tmp, LOG_FILE_NAME, LOG_FILE_NAME,
dst_dir, 1))) {
goto cleanup;
}
ds_destroy(ds_tmp);
Expand Down

0 comments on commit 0e0a19b

Please sign in to comment.