• Kristian Nielsen's avatar
    MDEV-7936: Assertion `!table || table->in_use == _current_thd()' failed on... · 60d094ae
    Kristian Nielsen authored
    MDEV-7936: Assertion `!table || table->in_use == _current_thd()' failed on parallel replication in optimistic mode
    
    Make sure that in parallel replication, we execute wait_for_prior_commit()
    before setting table->in_use for a temporary table. Otherwise we can end up
    with two parallel replication worker threads competing with each other for
    use of a temporary table.
    
    Re-factor the use of find_temporary_table() to be able to handle errors
    in the caller (as wait_for_prior_commit() can return error in case of
    deadlock kill).
    60d094ae
rpl_parallel_temptable.test 6.55 KB