summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-11-21 17:14:14 -0500
committerNirbhay Choubey <nirbhay@mariadb.com>2016-11-21 17:14:14 -0500
commit4a27ab23cb2e2e9cc4e10614850a4f996c499090 (patch)
treedce543be4f20780a03bbe93767ba89d15abdd576 /sql
parentebe061900b01e4b9ad69860a0e15df44b0ebbb92 (diff)
downloadmariadb-git-4a27ab23cb2e2e9cc4e10614850a4f996c499090.tar.gz
MDEV-10792: Assertion `thd->mdl_context.is_lock_owner ..bb-10.2-nirbhay
.. (MDL_key::TABLE, table->db, table->table_name, MDL_SHARED)' failed in mysql_rm_table_no_locks Reset error flag after temporary table has been successfully dropped.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_table.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 38b45a7a2c9..d112d29d10a 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -2299,6 +2299,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
error= 1;
goto err;
}
+ error= 0;
table->table= 0;
}