MDEV-25312 fixup: Invoke fil_space_t::rename() correctly

This commit is contained in:
Marko Mäkelä 2021-05-14 08:24:43 +03:00
parent 4547c6f283
commit a0b133f431

View file

@ -4921,8 +4921,7 @@ exit:
msg("mariabackup: Renaming %s to %s.ibd", msg("mariabackup: Renaming %s to %s.ibd",
fil_space->chain.start->name, tmpname); fil_space->chain.start->name, tmpname);
if (fil_space->rename(tmpname, NULL, false) if (fil_space->rename(tmpname, false) != DB_SUCCESS) {
!= DB_SUCCESS) {
msg("mariabackup: Cannot rename %s to %s", msg("mariabackup: Cannot rename %s to %s",
fil_space->chain.start->name, tmpname); fil_space->chain.start->name, tmpname);
goto exit; goto exit;