• Marko Mäkelä's avatar
    MDEV-12827 Assertion failure when reporting duplicate key error in online table rebuild · 0202e472
    Marko Mäkelä authored
    row_log_table_apply_insert_low(), row_log_table_apply_update():
    When reporting the error_key_num, only count the clustered index
    if it corresponds to a key in the SQL layer.
    
    The assertion failure was probably introduced by the (incomplete)
    MySQL 5.6.28 bug fix
    Bug #21364096 THE BOGUS DUPLICATE KEY ERROR IN ONLINE DDL
    WITH INCORRECT KEY NAME
    which we are improving.
    
    Side note: the fix was incorrectly merged to MySQL 5.7.10;
    incorrect key names will continue to be reported in MySQL 5.7.
    0202e472
row0log.cc 103 KB