From 8eaf4bc5ec05a8dfc44c044bd52db3a3719f502a Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Mon, 15 Feb 2021 13:57:35 +0300 Subject: [PATCH] Comment on assertion in row_rename_table_for_mysql() Related to commit f0baa864 and MDEV-23632. --- storage/innobase/row/row0mysql.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc index 3de1ad87365..096407611d8 100644 --- a/storage/innobase/row/row0mysql.cc +++ b/storage/innobase/row/row0mysql.cc @@ -4335,6 +4335,7 @@ row_rename_table_for_mysql( "END;\n" , FALSE, trx); + /* Assume the caller guarantees destination name doesn't exist. */ ut_ad(err != DB_DUPLICATE_KEY); /* SYS_TABLESPACES and SYS_DATAFILES need to be updated if