mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bzr merge -r3928..3932 codership/5.5
This commit is contained in:
@ -2721,7 +2721,9 @@ mysql_execute_command(THD *thd)
|
||||
if (trans_commit_implicit(thd))
|
||||
{
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_DEBUG("implicit commit failed, MDL released: %lu", thd->thread_id);
|
||||
#endif /* WITH_WSREP */
|
||||
goto error;
|
||||
}
|
||||
/* Release metadata locks acquired in this transaction. */
|
||||
@ -4711,7 +4713,9 @@ end_with_restore_list:
|
||||
if (trans_begin(thd, lex->start_transaction_opt))
|
||||
{
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_DEBUG("BEGIN failed, MDL released: %lu", thd->thread_id);
|
||||
#endif /* WITH_WSREP */
|
||||
goto error;
|
||||
}
|
||||
my_ok(thd);
|
||||
@ -4729,7 +4733,9 @@ end_with_restore_list:
|
||||
if (trans_commit(thd))
|
||||
{
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_DEBUG("COMMIT failed, MDL released: %lu", thd->thread_id);
|
||||
#endif /* WITH_WSREP */
|
||||
goto error;
|
||||
}
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
@ -4755,9 +4761,9 @@ end_with_restore_list:
|
||||
if (WSREP(thd)) {
|
||||
|
||||
if (thd->wsrep_conflict_state == NO_CONFLICT ||
|
||||
thd->wsrep_conflict_state == REPLAYING)
|
||||
thd->wsrep_conflict_state == REPLAYING)
|
||||
{
|
||||
my_ok(thd);
|
||||
my_ok(thd);
|
||||
}
|
||||
} else {
|
||||
#endif /* WITH_WSREP */
|
||||
@ -4780,7 +4786,9 @@ end_with_restore_list:
|
||||
if (trans_rollback(thd))
|
||||
{
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_DEBUG("rollback failed, MDL released: %lu", thd->thread_id);
|
||||
#endif /* WITH_WSREP */
|
||||
goto error;
|
||||
}
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
@ -4802,7 +4810,7 @@ end_with_restore_list:
|
||||
#ifdef WITH_WSREP
|
||||
if (WSREP(thd)) {
|
||||
if (thd->wsrep_conflict_state == NO_CONFLICT) {
|
||||
my_ok(thd);
|
||||
my_ok(thd);
|
||||
}
|
||||
} else {
|
||||
#endif /* WITH_WSREP */
|
||||
@ -5327,7 +5335,9 @@ create_sp_error:
|
||||
if (trans_xa_commit(thd))
|
||||
{
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_DEBUG("XA commit failed, MDL released: %lu", thd->thread_id);
|
||||
#endif /* WITH_WSREP */
|
||||
goto error;
|
||||
}
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
@ -5343,7 +5353,9 @@ create_sp_error:
|
||||
if (trans_xa_rollback(thd))
|
||||
{
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
#ifdef WITH_WSREP
|
||||
WSREP_DEBUG("XA rollback failed, MDL released: %lu", thd->thread_id);
|
||||
#endif /* WITH_WSREP */
|
||||
goto error;
|
||||
}
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
|
Reference in New Issue
Block a user