summaryrefslogtreecommitdiff
path: root/storage/innobase/handler
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2016-06-23 07:42:40 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2016-06-23 07:42:40 +0300
commit26de9061e8c4462152b4bcff2b9cbb80cde12de1 (patch)
tree517ff7ad9e9f1417960d31172dfeadb0472b9bbb /storage/innobase/handler
parente16780619630676f822248f3637972235481fd96 (diff)
downloadmariadb-git-26de9061e8c4462152b4bcff2b9cbb80cde12de1.tar.gz
Merge following commit from 5.5:
commit ef92aaf9ece92c873ae0f3448ab2274c958ba3fe Author: Jan Lindström <jan.lindstrom@mariadb.com> Date: Wed Jun 22 22:37:28 2016 +0300 MDEV-10083: Orphan ibd file when playing with foreign keys Analysis: row_drop_table_for_mysql did not allow dropping referenced table even in case when actual creating of the referenced table was not successfull if foreign_key_checks=1. Fix: Allow dropping referenced table even if foreign_key_checks=1 if actual table create returned error.
Diffstat (limited to 'storage/innobase/handler')
-rw-r--r--storage/innobase/handler/ha_innodb.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 06fd6591d89..9d976d685ed 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -10686,7 +10686,8 @@ ha_innobase::delete_table(
/* Drop the table in InnoDB */
err = row_drop_table_for_mysql(
- norm_name, trx, thd_sql_command(thd) == SQLCOM_DROP_DB);
+ norm_name, trx, thd_sql_command(thd) == SQLCOM_DROP_DB,
+ FALSE);
if (err == DB_TABLE_NOT_FOUND
@@ -10717,7 +10718,8 @@ ha_innobase::delete_table(
#endif
err = row_drop_table_for_mysql(
par_case_name, trx,
- thd_sql_command(thd) == SQLCOM_DROP_DB);
+ thd_sql_command(thd) == SQLCOM_DROP_DB,
+ FALSE);
}
}