• Marko Mäkelä's avatar
    MDEV-26864 Race condition between transaction commit and undo log truncation · c484a358
    Marko Mäkelä authored
    trx_commit_in_memory(): Do not release the rseg reference before
    trx_undo_commit_cleanup() has been invoked and the current transaction
    is truly done with the rollback segment. The purpose of the reference
    count is to prevent data races with trx_purge_truncate_history().
    
    This is based on
    mysql/mysql-server@ac79aa1522f33e6eb912133a81fa2614db764c9c.
    c484a358
trx0trx.cc 81.2 KB