From f0baa8648493a6368f45c6cbf459832d5027aaff Mon Sep 17 00:00:00 2001 From: Nikita Malyavin Date: Wed, 23 Dec 2020 23:59:00 +1000 Subject: ut_ad(err != DB_DUPLICATE_KEY) in row_rename_table_for_mysql --- storage/innobase/row/row0mysql.cc | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- cgit v1.2.1