mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MW-388 Fix conflict handling of SPs with DECLARE ... HANDLER
Adapt to MariaDB case
This commit is contained in:
@ -5621,7 +5621,7 @@ finish:
|
|||||||
if (thd->is_error() || (thd->variables.option_bits & OPTION_MASTER_SQL_ERROR))
|
if (thd->is_error() || (thd->variables.option_bits & OPTION_MASTER_SQL_ERROR))
|
||||||
trans_rollback_stmt(thd);
|
trans_rollback_stmt(thd);
|
||||||
#ifdef WITH_WSREP
|
#ifdef WITH_WSREP
|
||||||
else if (thd->sp_runtime_ctx &&
|
else if (thd->spcont &&
|
||||||
!thd->is_error() &&
|
!thd->is_error() &&
|
||||||
!thd->in_multi_stmt_transaction_mode() &&
|
!thd->in_multi_stmt_transaction_mode() &&
|
||||||
(thd->wsrep_conflict_state == MUST_ABORT ||
|
(thd->wsrep_conflict_state == MUST_ABORT ||
|
||||||
@ -5637,7 +5637,7 @@ finish:
|
|||||||
*/
|
*/
|
||||||
trans_rollback_stmt(thd);
|
trans_rollback_stmt(thd);
|
||||||
thd->wsrep_conflict_state= NO_CONFLICT;
|
thd->wsrep_conflict_state= NO_CONFLICT;
|
||||||
thd->killed= THD::NOT_KILLED;
|
thd->killed= NOT_KILLED;
|
||||||
}
|
}
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user