• Magne Mahre's avatar
    Bug #37183 insert ignore into .. select ... hangs after · 552965ef
    Magne Mahre authored
               deadlock was encountered
    
    The bug is caused by an inconsistent handling of the IGNORE
    clause.  A read from a const table caused a lock timeout
    (ER_LOCK_TIMEOUT) in innodb.  Since the IGNORE clause was
    given, the timeout was converted into a warning instead of
    an error, thus not populating the diagnostics area.  When
    innodb subsequently marked the transaction for rollback,
    mysql asserted since the diag.area was empty.
    
    This patch consists of only a test case, as the bug itself
    was fixed by the patch for Bug #46539
    
    
    552965ef
innodb_lock_wait_timeout_1.result 8.24 KB