From 63e9a05440953bf451ebe1cd808ca445e4c7634e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Mon, 28 Jun 2021 15:37:29 +0300 Subject: MDEV-25942: Assertion !table.n_waiting_or_granted_auto_inc_locks trx_t::drop_table(): Remove a bogus debug assertion. The current transaction may hold an AUTO_INCREMENT lock on the table while CREATE TABLE t2 (pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB SELECT... is being rolled back due to lock wait timeout. Remaining debug assertions will check that only this transaction is holding locks on the table, and that one of them is an exclusive lock. --- storage/innobase/dict/drop.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/storage/innobase/dict/drop.cc b/storage/innobase/dict/drop.cc index 7f936aaf051..ff8e108b26d 100644 --- a/storage/innobase/dict/drop.cc +++ b/storage/innobase/dict/drop.cc @@ -151,7 +151,6 @@ dberr_t trx_t::drop_table(const dict_table_t &table) ut_ad(!(table.stats_bg_flag & BG_STAT_IN_PROGRESS)); /* The table must be exclusively locked by this transaction. */ ut_ad(table.get_ref_count() <= 1); - ut_ad(!table.n_waiting_or_granted_auto_inc_locks); ut_ad(table.n_lock_x_or_s == 1); ut_ad(UT_LIST_GET_LEN(table.locks) >= 1); #ifdef UNIV_DEBUG -- cgit v1.2.1