Skip to content

Commit

Permalink
ut_ad(err != DB_DUPLICATE_KEY) in row_rename_table_for_mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarrior committed Jan 5, 2021
1 parent a81fbbc commit f0baa86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/innobase/row/row0mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f0baa86

Please sign in to comment.