• Vladislav Vaintroub's avatar
    MDEV-23741 Windows : error when renaming file in ALTER TABLE · ade782c0
    Vladislav Vaintroub authored
    The presumed reason for the error is that the file was opened
    by 3rd party antivirus or backup program, causing ERROR_SHARING_VIOLATION
    on rename.
    
    The fix, actually a workaround, is to retry MoveFileEx couple of times
    before finally giving up. We expect 3rd party programs not to hold file
    for extended time.
    ade782c0
my_rename.c 3.2 KB