summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2014-03-23 18:39:10 +0200
committerMichael Widenius <monty@askmonty.org>2014-03-23 18:39:10 +0200
commit9aac54687286b979c9469326f501a4b23aa5e4a3 (patch)
treedc701d68c87d99f06c1ef348cdad92c6b42df0fa /sql/sql_base.cc
parent39e6083e35459c9c8b22d37aaa2b74545884c7b0 (diff)
downloadmariadb-git-9aac54687286b979c9469326f501a4b23aa5e4a3.tar.gz
MDEV-5930 Server crashes in thd_get_ha_data on CREATE OR REPLACE TABLE
mysql-test/r/create_or_replace.result: More tests for create or replace mysql-test/t/create_or_replace.test: More tests for create or replace sql/log.cc: Don't use binlog_hton if binlog is not enabmed sql/sql_base.cc: We have to call restart_trans_for_tables also if tables where not locked with LOCK TABLES. If not, we will get a crash in TokuDB sql/sql_insert.cc: Don't call binlog_reset_cache() if we don't have binary log open sql/sql_table.cc: Don't log to binary log if not open Better test if we where using create or replace ... select storage/tokudb/mysql-test/tokudb_mariadb/r/create_or_replace.result: More tests for create or replace storage/tokudb/mysql-test/tokudb_mariadb/t/create_or_replace.test: More tests for create or replace
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 47db5762cc8..f30b2617c1d 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -5426,9 +5426,6 @@ bool restart_trans_for_tables(THD *thd, TABLE_LIST *table)
{
DBUG_ENTER("restart_trans_for_tables");
- if (!thd->locked_tables_mode)
- DBUG_RETURN(FALSE);
-
for (; table; table= table->next_global)
{
if (table->placeholder())