• Sergey Vojtovich's avatar
    Applying InnoDB plugin snashot · 5bd0efc8
    Sergey Vojtovich authored
    Detailed revision comments:
    
    r6048 | vasil | 2009-10-09 08:42:55 +0300 (Fri, 09 Oct 2009) | 16 lines
    branches/zip:
    
    When scanning a directory readdir() is called and stat() after it,
    if a file is deleted between the two calls stat will fail and the
    whole precedure will fail. Change this behavior to continue with the
    next entry if stat() fails because of nonexistent file. This is
    transparent change as it will make it look as if the file was deleted
    before the readdir() call.
    
    This change is needed in order to fix
    https://svn.innodb.com/mantis/view.php?id=174
    in which we need to abort if os_file_readdir_next_file()
    encounters "real" errors.
    
    Approved by:	Marko, Pekka (rb://177)
    5bd0efc8
os0file.c 105 KB