mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge tag '11.1' into 11.2
MariaDB 11.1.3 release
This commit is contained in:
@@ -2383,7 +2383,17 @@ void rpl_group_info::slave_close_thread_tables(THD *thd)
|
||||
{
|
||||
DBUG_ENTER("rpl_group_info::slave_close_thread_tables(THD *thd)");
|
||||
thd->get_stmt_da()->set_overwrite_status(true);
|
||||
thd->is_error() ? trans_rollback_stmt(thd) : trans_commit_stmt(thd);
|
||||
#ifdef WITH_WSREP
|
||||
// This can happen e.g. when table_def::compatible_with fails and sets a error
|
||||
// but thd->is_error() is false then. However, we do not want to commit
|
||||
// statement on Galera instead we want to rollback it as later in
|
||||
// apply_write_set we rollback transaction and that can't be done
|
||||
// after wsrep transaction state is s_committed.
|
||||
if (WSREP(thd))
|
||||
(thd->is_error() || thd->is_slave_error) ? trans_rollback_stmt(thd) : trans_commit_stmt(thd);
|
||||
else
|
||||
#endif
|
||||
thd->is_error() ? trans_rollback_stmt(thd) : trans_commit_stmt(thd);
|
||||
thd->get_stmt_da()->set_overwrite_status(false);
|
||||
|
||||
close_thread_tables(thd);
|
||||
|
Reference in New Issue
Block a user