Commit f21e159b authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-25506 fixup for Windows

make os_file_rename_func work on Windows the same as on Unix.
parent db078224
...@@ -2839,7 +2839,7 @@ os_file_rename_func( ...@@ -2839,7 +2839,7 @@ os_file_rename_func(
ut_ad(exists); ut_ad(exists);
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
if (MoveFile((LPCTSTR) oldpath, (LPCTSTR) newpath)) { if (MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING)) {
return(true); return(true);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment