• Sergei Golubchik's avatar
    MDEV-13708 Crash with indexed virtual columns and FK cascading deletes · 50a8beed
    Sergei Golubchik authored
    InnoDB was too eager to forget the open table (m_mysql_table=NULL)
    and that caused it to try to open a table which was opened by the user
    not FK-prelocked. The server didn't expect that.
    
    After fixing this, it crashed in gcol.innodb_virtual_fk test, trying to
    compute virtual columns for a table that didn't have them. Because
    row_upd_store_row() was deleting a row from node->table, while computing
    virtual columns in thr->prebuilt->m_mysql_table. Which wasn't necessarily
    the same table, and might've not even had virtual columns, even if
    node->table did.
    50a8beed
innodb_virtual_fk.test 482 Bytes