summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2020-12-23 23:59:00 +1000
committerNikita Malyavin <nikitamalyavin@gmail.com>2021-01-05 19:19:27 +1000
commitf0baa8648493a6368f45c6cbf459832d5027aaff (patch)
tree442c2cc4725d447ce889fb85914459da040f8727
parenta81fbbc63eecd5d6e08abbd1002e18706a1194e8 (diff)
downloadmariadb-git-f0baa8648493a6368f45c6cbf459832d5027aaff.tar.gz
ut_ad(err != DB_DUPLICATE_KEY) in row_rename_table_for_mysql
-rw-r--r--storage/innobase/row/row0mysql.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc
index c643a907722..a1620bc3212 100644
--- a/storage/innobase/row/row0mysql.cc
+++ b/storage/innobase/row/row0mysql.cc
@@ -4349,6 +4349,8 @@ row_rename_table_for_mysql(
"END;\n"
, FALSE, trx);
+ ut_ad(err != DB_DUPLICATE_KEY);
+
/* SYS_TABLESPACES and SYS_DATAFILES need to be updated if
the table is in a single-table tablespace. */
if (err != DB_SUCCESS || !dict_table_is_file_per_table(table)) {