• Jon Olav Hauglid's avatar
    Bug #54105 assert in MDL_context::release_locks_stored_before · 3bc4d540
    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.
    3bc4d540
event_db_repository.cc 34.3 KB