mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
10.0-base merge
This commit is contained in:
@ -993,8 +993,20 @@ send_result_message:
|
||||
}
|
||||
}
|
||||
/* Error path, a admin command failed. */
|
||||
trans_commit_stmt(thd);
|
||||
trans_commit_implicit(thd);
|
||||
if (thd->transaction_rollback_request)
|
||||
{
|
||||
/*
|
||||
Unlikely, but transaction rollback was requested by one of storage
|
||||
engines (e.g. due to deadlock). Perform it.
|
||||
*/
|
||||
if (trans_rollback_stmt(thd) || trans_rollback_implicit(thd))
|
||||
goto err;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (trans_commit_stmt(thd) || trans_commit_implicit(thd))
|
||||
goto err;
|
||||
}
|
||||
close_thread_tables(thd);
|
||||
thd->mdl_context.release_transactional_locks();
|
||||
|
||||
|
Reference in New Issue
Block a user