summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-04-30 08:55:16 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-04-30 08:55:16 +0200
commitf21e159bb5dcfc398263142a8f858a1291b25d8e (patch)
tree61d30a410e1727311ab5e37ef4cbf4fe4afa11aa
parentdb0782243c3cae80491b7483c6fb11ba00520be7 (diff)
downloadmariadb-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.cc2
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);
}