• unknown's avatar
    Bug #18480 Windows file rename problems in archive storage engine · b1d833f7
    unknown authored
    The problem was that the optimize code was not closing both the reader and writer streams before attempting
    to rename the file.  This will not work on Windows where all file handles have to be closed before the
    file can be renamed, moved, or deleted.  The fix was to move the close calls before the rename.
    We return the error code from my_rename in case of failure but we attempt to reopen the writers and readers
    even in the case of failure so that the table can still be usable.
    
    
    storage/archive/ha_archive.cc:
      close the writer and reader before the rename so that the rename will work on Windows.
    b1d833f7
ha_archive.cc 44.9 KB