• Vladislav Vaintroub's avatar
    MDEV-4576 : Aria storage engine's temporary files might not be deleted (Errcode : 13) · 09aaf500
    Vladislav Vaintroub authored
    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.
    09aaf500
my_sys.h 40.1 KB