summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-06-16 22:13:26 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2013-06-16 22:13:26 +0200
commitc61c1d7ce1c844b3912a279b642498f00649ebe7 (patch)
tree0763862dbd41c15293ca395ebb49bad78f1f88c6 /include
parent4b058643cd6396b46898380ba7fee5d583e18cfd (diff)
downloadmariadb-git-c61c1d7ce1c844b3912a279b642498f00649ebe7.tar.gz
MDEV-4576 : Aria storage engine's temporary files might not be deleted (Errcode : 13)
See also MySQL Bug #39750 and similar ones. Fix my_delete() on Windows, to safely remvoe files on Windows, including files that are opened by another threads in the same process, antiviruses and backup applications. If file to be deleted is also opened by another thread, the file is renamed to unique name prior to deletion - this makes it possible to create file with the same name right after deletion. With this patch my_delete_allow_opened() becomes obsolete and is replaced with my_delete(). This patch is rework of the patch http://lists.mysql.com/commits/59327 for MySQL bug#39750.
Diffstat (limited to 'include')
-rw-r--r--include/my_sys.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index 2281d014c85..f913430ac9e 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -609,13 +609,6 @@ extern int check_if_legal_filename(const char *path);
extern int check_if_legal_tablename(const char *path);
#ifdef _WIN32
-extern int nt_share_delete(const char *name,myf MyFlags);
-#define my_delete_allow_opened(fname,flags) nt_share_delete((fname),(flags))
-#else
-#define my_delete_allow_opened(fname,flags) my_delete((fname),(flags))
-#endif
-
-#ifdef _WIN32
/* Windows-only functions (CRT equivalents)*/
extern HANDLE my_get_osfhandle(File fd);
extern void my_osmaperr(unsigned long last_error);