• Sergei Golubchik's avatar
    MDEV-4456 Reverse discovery of ARCHIVE table on SELECT after disappearance of ARZ file · d7e0c3cc
    Sergei Golubchik authored
    Implement discovery of table non-existence, and related changes:
    
    1. Split GTS_FORCE_DISCOVERY (that was meaning two different things in
    two different functions) into GTS_FORCE_DISCOVERY and GTS_USE_DISCOVERY.
    2. Move GTS_FORCE_DISCOVERY implementation into open_table_def().
    3. In recover_from_failed_open() clear old errors *before* discovery,
    not after successful discovery. The final error should come
    from the discovery.
    4. On forced discovery delete table .frm first. Discovery will write
    a new one, if desired.
    5. If the frm file exists, but not the table in the engine, force
    rediscovery if the engine supports it.
    d7e0c3cc
discover.test 2.68 KB