diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 9800c445cfb..41fc49d623e 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -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); }