summaryrefslogtreecommitdiff
path: root/sql/sql_partition_admin.cc
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2017-07-25 10:56:44 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2017-09-15 09:09:26 +0300
commitf3435fc37e7e0cfd5384c609d16b0d6cc3048454 (patch)
tree48b1249b44d2acf69d2889eefd64dfd859762855 /sql/sql_partition_admin.cc
parente9d2f37abd766e5b02d223215bc069530ebb10b8 (diff)
downloadmariadb-git-f3435fc37e7e0cfd5384c609d16b0d6cc3048454.tar.gz
MW-394
* ported the partition.test from MariaDB 10.3 code tree * fix to TOI replicate ALTER TABLE EXCHANGE PARTITION statement
Diffstat (limited to 'sql/sql_partition_admin.cc')
-rw-r--r--sql/sql_partition_admin.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_partition_admin.cc b/sql/sql_partition_admin.cc
index 519b7cc8195..48db032fe58 100644
--- a/sql/sql_partition_admin.cc
+++ b/sql/sql_partition_admin.cc
@@ -89,9 +89,15 @@ bool Sql_cmd_alter_table_exchange_partition::execute(THD *thd)
/* Not allowed with EXCHANGE PARTITION */
DBUG_ASSERT(!create_info.data_file_name && !create_info.index_file_name);
+ WSREP_TO_ISOLATION_BEGIN_WRTCHK(NULL, NULL, first_table);
thd->enable_slow_log= opt_log_slow_admin_statements;
DBUG_RETURN(exchange_partition(thd, first_table, &alter_info));
+#ifdef WITH_WSREP
+ error:
+ /* handle errors in TO_ISOLATION here */
+ DBUG_RETURN(true);
+#endif /* WITH_WSREP */
}