• Jon Olav Hauglid's avatar
    Follow-up to Bug #54332 Deadlock with two connections doing · 1c09847b
    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.
    1c09847b
sql_insert.cc 133 KB