diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-04-30 08:55:16 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-04-30 08:55:16 +0200 |
commit | f21e159bb5dcfc398263142a8f858a1291b25d8e (patch) | |
tree | 61d30a410e1727311ab5e37ef4cbf4fe4afa11aa | |
parent | db0782243c3cae80491b7483c6fb11ba00520be7 (diff) | |
download | mariadb-git-f21e159bb5dcfc398263142a8f858a1291b25d8e.tar.gz |
MDEV-25506 fixup for Windows
make os_file_rename_func work on Windows the same as on Unix.
-rw-r--r-- | storage/innobase/os/os0file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |