[MDEV-23234] move MDL from THD to st_transaction Created: 2020-07-20  Updated: 2022-04-25

Status: Open
Project: MariaDB Server
Component/s: Locking
Fix Version/s: None

Type: Task Priority: Major
Reporter: Sergei Golubchik Assignee: Vladislav Vaintroub
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-21602 CREATE TABLE…PRIMARY KEY…SELECT worka... Closed

 Description   

MDL belongs to a transaction, not to a connection. For example, when a transaction is moved to a different thd, MDLs should be moved too.

Problem, what if a connection owns more than one open transaction and they have conflicting lock requests? It cannot wait on itself, so deadlock detector has to be able to detect a loop right away.


Generated at Thu Feb 08 09:20:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.