diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-06-28 15:37:29 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-06-28 15:37:29 +0300 |
commit | 63e9a05440953bf451ebe1cd808ca445e4c7634e (patch) | |
tree | bd3413d43652d9ccf46e4d220b1073b519620a35 | |
parent | 891a927e804c5a3a582f6137c2f316ef7abb25ca (diff) | |
download | mariadb-git-63e9a05440953bf451ebe1cd808ca445e4c7634e.tar.gz |
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.
-rw-r--r-- | storage/innobase/dict/drop.cc | 1 |
1 files changed, 0 insertions, 1 deletions
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 |