• Jon Olav Hauglid's avatar
    Bug #54105 assert in MDL_context::release_locks_stored_before · 99b1d5ea
    Jon Olav Hauglid authored
    The problem was that SHOW CREATE EVENT released all metadata locks
    held by the current transaction. This made any exisiting savepoints
    invalid, triggering the assert when ROLLBACK TO SAVEPOINT later
    was executed.
    
    This patch fixes the problem by making sure SHOW CREATE EVENT only
    releases metadata locks acquired by the statement itself.
    
    Test case added to event_trans.test.
    99b1d5ea
event_db_repository.cc 34.3 KB