MDEV-25506 fixup for Windows
make os_file_rename_func work on Windows the same as on Unix.
This commit is contained in:
parent
db0782243c
commit
f21e159bb5
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user