Skip to content

Commit

Permalink
refs codership/mysql-wsrep#114 - skipping TOI if not using wsrep prov…
Browse files Browse the repository at this point in the history
…ider
  • Loading branch information
sjaakola authored and Nirbhay Choubey committed Sep 10, 2015
1 parent c666090 commit 6bb890c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_partition_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bb890c

Please sign in to comment.