Commit 63e9a054 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent 891a927e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment