MDEV-25506 fixup for Windows

make os_file_rename_func work on Windows the same as on Unix.
This commit is contained in:
Vladislav Vaintroub 2021-04-30 08:55:16 +02:00
parent db0782243c
commit f21e159bb5

View File

@ -2839,7 +2839,7 @@ os_file_rename_func(
ut_ad(exists);
#endif /* UNIV_DEBUG */
if (MoveFile((LPCTSTR) oldpath, (LPCTSTR) newpath)) {
if (MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING)) {
return(true);
}