• Jon Olav Hauglid's avatar
    Follow-up to Bug #54332 Deadlock with two connections doing · 664833fa
    Jon Olav Hauglid authored
                 LOCK TABLE+INSERT DELAYED
    
    The problem was that the server could crash if the insert delayed
    handler thread was killed due to a conflicting shared metadata
    lock. This could happen because the metadata lock ticket was
    added to the handler thread before it was properly initialized.
    
    This patch moves the cloning of the acquired metadata lock ticket
    until after the handler thread has been properly initialized.
    664833fa
sql_insert.cc 133 KB