mirror of
https://github.com/MariaDB/server.git
synced 2025-02-14 09:25:35 +01:00
![Marko Mäkelä](/assets/img/avatar_default.png)
trx_t::autoinc_locks: Use small_vector<lock_t*,4> in order to avoid any dynamic memory allocation in the most common case (a statement is holding AUTO_INCREMENT locks on at most 4 tables or partitions). lock_cancel_waiting_and_release(): Instead of removing elements from the middle, simply assign nullptr, like lock_table_remove_autoinc_lock(). The added test innodb.auto_increment_lock_mode covers the dynamic memory allocation as well as nondeterministically (occasionally) covers the out-of-order lock release in lock_table_remove_autoinc_lock(). Reviewed by: Debarun Banerjee
6 lines
106 B
Text
6 lines
106 B
Text
[old]
|
|
--innodb-autoinc-lock-mode=0
|
|
[new]
|
|
--innodb-autoinc-lock-mode=1
|
|
[none]
|
|
--innodb-autoinc-lock-mode=2
|