Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
Description
InnoDB is unnecessarily acquiring record locks when the transaction is already holding a table lock that prevents any conflicts. Starting with MySQL 4.0 or 4.1, the table locks acquired by LOCK TABLES are mapped to shared or exclusive InnoDB table locks, but InnoDB is still acquiring unnecessary record locks internally.
The attached patch is only a start. It adjusts a debug check so that exclusive or shared table locks are considered to be equivalent to exclusive or shared record locks.
Attachments
Issue Links
- relates to
-
MDEV-16675 Unnecessary explicit lock acquisition during UPDATE or DELETE
- Closed
-
MDEV-24813 Locking full table scan fails to use table-level locking
- In Review
-
MDEV-11215 Several locks taken to same record inside a transaction.
- Stalled