Commit 958ad5a8 authored by Jan Lindström's avatar Jan Lindström

MW-388 Fix conflict handling of SPs with DECLARE ... HANDLER

Adapt to MariaDB case
parent 76f1195f
......@@ -5621,7 +5621,7 @@ case SQLCOM_PREPARE:
if (thd->is_error() || (thd->variables.option_bits & OPTION_MASTER_SQL_ERROR))
trans_rollback_stmt(thd);
#ifdef WITH_WSREP
else if (thd->sp_runtime_ctx &&
else if (thd->spcont &&
!thd->is_error() &&
!thd->in_multi_stmt_transaction_mode() &&
(thd->wsrep_conflict_state == MUST_ABORT ||
......@@ -5637,7 +5637,7 @@ case SQLCOM_PREPARE:
*/
trans_rollback_stmt(thd);
thd->wsrep_conflict_state= NO_CONFLICT;
thd->killed= THD::NOT_KILLED;
thd->killed= NOT_KILLED;
}
#endif /* WITH_WSREP */
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment