[MDEV-21327] Notify tpool threadpool about MDL waits Created: 2019-12-16  Updated: 2020-04-01  Resolved: 2020-03-25

Status: Closed
Project: MariaDB Server
Component/s: Server, Storage Engine - InnoDB
Fix Version/s: 10.5.2

Type: Task Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-16678 Use MDL for innodb background threads... Closed

 Description   

As Innodb background threads are using MDL lock now, the threadpool should be notified
about the waits via tpool_wait_begin/end.



 Comments   
Comment by Sergey Vojtovich [ 2019-12-16 ]

There's already thd_wait_begin() call in mdl. May be we should set special thd->scheduler to implement this?

Comment by Vladislav Vaintroub [ 2019-12-16 ]

There is no THD in the background threads, or should not be.

Comment by Sergey Vojtovich [ 2019-12-16 ]

Then it should probably be MDL_context method.

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