• Rinat Ibragimov's avatar
    MDEV-20945: BACKUP UNLOCK + FTWRL assertion failure · 709ba7dc
    Rinat Ibragimov authored
    MDEV-20945: BACKUP UNLOCK + FTWRL assertion failure | SIGSEGV in I_P_List
    from MDL_context::release_lock on INSERT w/ BACKUP LOCK (on optimized
    builds) | Assertion `ticket->m_duration == MDL_EXPLICIT' failed
    
    BACKUP LOCK behavior is modified so it won't be used wrong:
    - BACKUP LOCK should commit any active transactions.
    - BACKUP LOCK should not be allowed in stored procedures.
    - When BACKUP LOCK is active, don't allow any DDL's for that connection.
    - FTWRL is forbidden on the same connection while BACKUP LOCK is active.
    
    Reviewed-by: monty@mariadb.com
    709ba7dc
backup_locks.test 4.28 KB