Skip to content

Commit f3435fc

Browse files
sjaakolaJan Lindström
authored andcommitted
MW-394
* ported the partition.test from MariaDB 10.3 code tree * fix to TOI replicate ALTER TABLE EXCHANGE PARTITION statement
1 parent e9d2f37 commit f3435fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sql/sql_partition_admin.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,15 @@ bool Sql_cmd_alter_table_exchange_partition::execute(THD *thd)
8989

9090
/* Not allowed with EXCHANGE PARTITION */
9191
DBUG_ASSERT(!create_info.data_file_name && !create_info.index_file_name);
92+
WSREP_TO_ISOLATION_BEGIN_WRTCHK(NULL, NULL, first_table);
9293

9394
thd->enable_slow_log= opt_log_slow_admin_statements;
9495
DBUG_RETURN(exchange_partition(thd, first_table, &alter_info));
96+
#ifdef WITH_WSREP
97+
error:
98+
/* handle errors in TO_ISOLATION here */
99+
DBUG_RETURN(true);
100+
#endif /* WITH_WSREP */
95101
}
96102

97103

0 commit comments

Comments
 (0)