• Marko Mäkelä's avatar
    InnoDB: Remove a redundant condition and an outdated comment · 0ff62ad8
    Marko Mäkelä authored
    Since MariaDB 10.2.2, temporary table metadata is not written
    to the InnoDB data dictionary tables. Therefore,
    the DICT_TF2_TEMPORARY flag cannot be set in SYS_TABLES,
    except if there exist orphan temporary tables that were created
    before MariaDB 10.2.2.
    
    trx_resurrect_table_locks(): Do not skip temporary tables.
    If a resurrect transaction modified a temporary table that was
    created before MariaDB 10.2.2, that table would be treated
    internally as a persistent table. It is safer to resurrect
    locks than to skip the table, because the table would be modified
    on transaction rollback.
    0ff62ad8
dict0boot.cc 16.3 KB