diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 2e5a15498d8..9800c445cfb 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -2831,7 +2831,8 @@ os_file_rename_func( /* New path must not exist. */ ut_ad(os_file_status(newpath, &exists, &type)); - ut_ad(!exists); + /* MDEV-25506 FIXME: Remove the strstr() */ + ut_ad(!exists || strstr(oldpath, "/" TEMP_FILE_PREFIX_INNODB)); /* Old path must exist. */ ut_ad(os_file_status(oldpath, &exists, &type));