• Jon Olav Hauglid's avatar
    Bug#13586591 RQG GRAMMAR CONF/ENGINES/ENGINE_STRESS.YY · 6094d190
    Jon Olav Hauglid authored
                 CRASHES INNODB | TRX_STATE_NOT_STARTED
    
    The problem was that if DELETE with subselect caused a
    deadlock inside InnoDB, this deadlock was not properly
    handled by the SQL layer. This meant that the SQL layer
    would try to unlock the row after InnoDB had rolled
    back the transaction. This caused an assertion inside
    InnoDB.
    
    This patch fixes the problem by checking for errors
    reported by SQL_SELECT::skip_record() and not calling
    unlock_row() if any errors have been reported.
    6094d190
sql_delete.cc 29.6 KB