[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: |
|
||||||||
| Description |
|
As Innodb background threads are using MDL lock now, the threadpool should be notified |
| 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. |