• Marko Mäkelä's avatar
    MDEV-17541 KILL QUERY during lock wait in FOREIGN KEY check causes hang · a21e01a5
    Marko Mäkelä authored
    row_ins_check_foreign_constraint(): Do not overwrite hard errors
    with the soft error DB_LOCK_WAIT. This prevents an infinite
    wait loop when DB_INTERRUPTED was returned. For DB_LOCK_WAIT,
    row_insert_for_mysql() would keep invoking row_ins_step() and the
    transaction would remain active until the server shutdown is initiated.
    a21e01a5
row0ins.cc 102 KB