Skip to content

Commit f21e159

Browse files
committed
MDEV-25506 fixup for Windows
make os_file_rename_func work on Windows the same as on Unix.
1 parent db07822 commit f21e159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/os/os0file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2839,7 +2839,7 @@ os_file_rename_func(
28392839
ut_ad(exists);
28402840
#endif /* UNIV_DEBUG */
28412841

2842-
if (MoveFile((LPCTSTR) oldpath, (LPCTSTR) newpath)) {
2842+
if (MoveFileEx(oldpath, newpath, MOVEFILE_REPLACE_EXISTING)) {
28432843
return(true);
28442844
}
28452845

0 commit comments

Comments
 (0)