summaryrefslogtreecommitdiff
path: root/sql/sql_partition_admin.cc
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2015-04-24 10:39:42 +0300
committerNirbhay Choubey <nirbhay@mariadb.com>2015-09-09 21:20:41 -0400
commit6bb890c9b6655b409d0eb81725853415157b5b0c (patch)
tree253834a4db561a194eeb0cac7db5999f25336fc6 /sql/sql_partition_admin.cc
parentc66609017b25bf066008a3dec9e3ecd00fc5ce8b (diff)
downloadmariadb-git-6bb890c9b6655b409d0eb81725853415157b5b0c.tar.gz
refs codership/mysql-wsrep#114 - skipping TOI if not using wsrep provider
Diffstat (limited to 'sql/sql_partition_admin.cc')
-rw-r--r--sql/sql_partition_admin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_partition_admin.cc b/sql/sql_partition_admin.cc
index 1d5cebfbbfd..f520281135a 100644
--- a/sql/sql_partition_admin.cc
+++ b/sql/sql_partition_admin.cc
@@ -782,7 +782,7 @@ bool Sql_cmd_alter_table_truncate_partition::execute(THD *thd)
/* Forward declaration */
TABLE *find_temporary_table(THD *thd, const TABLE_LIST *tl);
- if ((!thd->is_current_stmt_binlog_format_row() ||
+ if (WSREP(thd) && (!thd->is_current_stmt_binlog_format_row() ||
!find_temporary_table(thd, first_table)) &&
wsrep_to_isolation_begin(
thd, first_table->db, first_table->table_name, NULL)