• Magne Mahre's avatar
    Bug #37183 insert ignore into .. select ... hangs after · 6947ee37
    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
    
    6947ee37
innodb_lock_wait_timeout_1.test 8.04 KB