• Daniele Sciascia's avatar
    MW-388 Fix conflict handling of SPs with DECLARE ... HANDLER · 76f1195f
    Daniele Sciascia authored
    It is possible for a stored procedure that has an error handler
    that catches SQLEXCEPTION to call thd->clear_error() on a thd
    that failed certification. And because the error is cleared,
    wsrep patch proceeds with the normal path and may try to commit
    statements that should actually abort.
    This patch catches the situation where wsrep_conflict_state is
    still set, but the thd's error has been cleared, and rolls back
    the statement in such cases.
    76f1195f
MW-388.result 1015 Bytes