• Davi Arnaut's avatar
    Bug#45377: ARCHIVE tables aren't discoverable after OPTIMIZE · ed434ce0
    Davi Arnaut authored
    The problem was that the optimize method of the ARCHIVE storage
    engine was not preserving the FRM embedded in the ARZ file when
    rewriting the ARZ file for optimization. The ARCHIVE engine stores
    the FRM in the ARZ file so it can be transferred from machine to
    machine without also copying the FRM -- the engine restores the
    embedded FRM during discovery.
    
    The solution is to copy over the FRM when rewriting the ARZ file.
    In addition, some initial error checking is performed to ensure
    garbage is not copied over.
    ed434ce0
ha_archive.cc 47.4 KB