• Monty's avatar
    Server crashes with BACKUP STAGE and FLUSH TABLE table_name · c2e0a0b1
    Monty authored
    Fixes MDEV-18067, MDEV-18068 and MDEV-18069
    
    The problem was that FLUSH TABLES table_name combined with UNLOCK TABLES
    calls MDL_context::set_transaction_duration_for_all_locks(), which
    changed backup_locks from MDL_EXPLICT to MDL_TRANSACTION.
    
    Fixed by ensuring that set_transaction_duration_for_all_locks() doesn't
    touch BACKUP locks.
    c2e0a0b1
backup_interaction.test 13.5 KB