summaryrefslogtreecommitdiff
path: root/sql/sql_admin.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@skysql.com>2014-08-12 14:05:44 -0400
committerNirbhay Choubey <nirbhay@skysql.com>2014-08-12 14:05:44 -0400
commit857abf148149d0d7a73dc6364b5bf3d19e58a7d1 (patch)
treec6409f2642f85e3c377febe7aeb4b8adf031f997 /sql/sql_admin.cc
parent38f048a013bcb9c73d74c26af9db4cfdf7299d93 (diff)
downloadmariadb-git-857abf148149d0d7a73dc6364b5bf3d19e58a7d1.tar.gz
bzr merge -r4104..4120 codership/5.6/
Diffstat (limited to 'sql/sql_admin.cc')
-rw-r--r--sql/sql_admin.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc
index f24bb2cff93..4a4ecc74d7c 100644
--- a/sql/sql_admin.cc
+++ b/sql/sql_admin.cc
@@ -1200,6 +1200,7 @@ bool Sql_cmd_optimize_table::execute(THD *thd)
if (check_table_access(thd, SELECT_ACL | INSERT_ACL, first_table,
FALSE, UINT_MAX, FALSE))
goto error; /* purecov: inspected */
+ WSREP_TO_ISOLATION_BEGIN(first_table->db, first_table->table_name, NULL)
thd->enable_slow_log= opt_log_slow_admin_statements;
res= (specialflag & SPECIAL_NO_NEW_FUNC) ?
mysql_recreate_table(thd, first_table, true) :